re PR c++/19878 (ICE in import_export_decl)
PR c++/19878 * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations with internal linkage. PR c++/19878 * g++.dg/init/const2.C: New test. From-SVN: r95490
This commit is contained in:
parent
03ce14dbc0
commit
1ceb02beed
4 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-02-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/19878
|
||||
* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
|
||||
with internal linkage.
|
||||
|
||||
2005-02-23 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* decl.c (grokvardecl): Don't exempt anonymous types from having
|
||||
|
|
|
@ -5950,6 +5950,8 @@ grokvardecl (tree type,
|
|||
warning ("non-local variable %q#D uses local type %qT", decl, t);
|
||||
}
|
||||
}
|
||||
else
|
||||
DECL_INTERFACE_KNOWN (decl) = 1;
|
||||
|
||||
return decl;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2005-02-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/19878
|
||||
* g++.dg/init/const2.C: New test.
|
||||
|
||||
2005-02-23 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
PR tree-optimization/20100
|
||||
|
|
7
gcc/testsuite/g++.dg/init/const2.C
Normal file
7
gcc/testsuite/g++.dg/init/const2.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
// PR c++/19878
|
||||
|
||||
struct S {
|
||||
char k;
|
||||
};
|
||||
char const volatile S::* const p01 = &S::k;
|
||||
|
Loading…
Add table
Reference in a new issue