re PR c++/36767 (Segmentation fault with -fprofile-arcs -O2)
authorDodji Seketeli <dseketel@redhat.com>
Wed, 30 Jul 2008 13:07:50 +0000 (13:07 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Wed, 30 Jul 2008 13:07:50 +0000 (15:07 +0200)
commite44c800e357f128c1d29b4a907d4a5ef30d8b905
tree08bd2a718763530d56f5fa8037654dede3816472
parent6ca2b0a0388c2944e222aab817db7f09bd2f96c4
re PR c++/36767 (Segmentation fault with -fprofile-arcs -O2)

2008-07-30  Dodji Seketeli  <dseketel@redhat.com>

PR c++/36767
* decl2.c (fix_temporary_vars_context_r): New function.
 (one_static_initialization_or_destruction): Make sure temporary
 variables part of the initialiser have their DECL_CONTEXT()
 properly set.

From-SVN: r138308
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash42.C [new file with mode: 0644]