re PR c++/8067 (g++ 3.2 internal error: Segmentation fault)
PR c++/8067 * decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and related variables. PR c++/8067 * g++.dg/lookup/pretty1.C: New test. From-SVN: r58477
This commit is contained in:
parent
b0af98d793
commit
6b607ffd46
4 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
2002-10-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/8067
|
||||
* decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
|
||||
related variables.
|
||||
|
||||
PR c++/7679
|
||||
* spew.c (next_token): Do not return an endless stream of
|
||||
END_OF_SAVED_INPUT tokens.
|
||||
|
|
|
@ -8175,6 +8175,12 @@ maybe_inject_for_scope_var (decl)
|
|||
{
|
||||
if (!DECL_NAME (decl))
|
||||
return;
|
||||
|
||||
/* Declarations of __FUNCTION__ and its ilk appear magically when
|
||||
the variable is first used. If that happens to be inside a
|
||||
for-loop, we don't want to do anything special. */
|
||||
if (DECL_PRETTY_FUNCTION_P (decl))
|
||||
return;
|
||||
|
||||
if (current_binding_level->is_for_scope)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2002-10-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/8067
|
||||
* g++.dg/lookup/pretty1.C: New test.
|
||||
|
||||
2002-10-23 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/20021023-1.c: New test.
|
||||
|
|
1
gcc/testsuite/g++.dg/lookup/pretty1.C
Normal file
1
gcc/testsuite/g++.dg/lookup/pretty1.C
Normal file
|
@ -0,0 +1 @@
|
|||
void foo() { for ( __PRETTY_FUNCTION__ ; ; ) ; }
|
Loading…
Add table
Reference in a new issue