]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
re PR c++/53599 (gcc-4.7.1_rc20120606 segfaults compiling boost.karma)
authorJason Merrill <jason@redhat.com>
Tue, 12 Jun 2012 18:32:04 +0000 (14:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 12 Jun 2012 18:32:04 +0000 (14:32 -0400)
commitfdaf2f48c02dcb5dcf9bbca130b2de56fc947f75
tree80e3be6314fbf654191d8c01e090f396c9f34812
parent0089c3bb1eb0c8bb8d0f8d0d91dd29f1ed760893
re PR c++/53599 (gcc-4.7.1_rc20120606 segfaults compiling boost.karma)

PR c++/53599
* name-lookup.c (pushtag_1): Add a DECL_EXPR for a local class.
* semantics.c (finish_cond): Build a COMPOUND_EXPR.
* pt.c (tsubst_expr) [COMPOUND_EXPR]: Handle.
[DECL_EXPR]: Don't call cp_finish_decl for an implicit typedef.
Don't return the decl.

From-SVN: r188473
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/local7.C [new file with mode: 0644]