re PR c++/64487 (internal compiler error: in fold_offsetof_1, at c-family/c-common...
authorJason Merrill <jason@redhat.com>
Tue, 6 Jan 2015 20:44:46 +0000 (15:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 6 Jan 2015 20:44:46 +0000 (15:44 -0500)
commitb433d944ab6d308ea3f85c7537e64b99bc27bed5
treec7a26affddc60bf802ff92d9266270bfd9436b70
parent47867b4f6556aab84701452eb0ff5a9bd2f46522
re PR c++/64487 (internal compiler error: in fold_offsetof_1, at c-family/c-common.c:9857)

PR c++/64487
* semantics.c (finish_offsetof): Handle templates here.
* parser.c (cp_parser_builtin_offsetof): Not here.

From-SVN: r219267
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/template/offsetof3.C [new file with mode: 0644]