tree.c (walk_tree): Don't recurse into DECL_INITIAL or DECL_SIZE unless...
* tree.c (walk_tree): Don't recurse into DECL_INITIAL or DECL_SIZE unless we're declaring the variable in question. From-SVN: r30815
This commit is contained in:
parent
601bf25120
commit
2fb9811eac
13
gcc/testsuite/g++.old-deja/g++.other/decl7.C
Normal file
13
gcc/testsuite/g++.old-deja/g++.other/decl7.C
Normal file
@ -0,0 +1,13 @@
|
||||
// Build don't link:
|
||||
// Origin: Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
struct S
|
||||
{
|
||||
void* sp;
|
||||
};
|
||||
|
||||
void* f ()
|
||||
{
|
||||
struct S s = { &s.sp };
|
||||
return s.sp;
|
||||
}
|
Loading…
Reference in New Issue
Block a user