mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-28 14:24:43 +08:00
[multiple changes]
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> PR c++/16301 * name-lookup.c (parse_using_directive): If we have a error_mark_node, do not set the decl namespace associations on it. 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> PR c++/16301 * g++.dg/lookup/strong-using-4.C: New test. From-SVN: r89093
This commit is contained in:
parent
f0602b16b7
commit
db3a95196c
@ -1,3 +1,10 @@
|
||||
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c++/16301
|
||||
* name-lookup.c (parse_using_directive): If we have a
|
||||
error_mark_node, do not set the decl namespace associations
|
||||
on it.
|
||||
|
||||
2004-10-14 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/17976
|
||||
|
@ -3422,7 +3422,7 @@ parse_using_directive (tree namespace, tree attribs)
|
||||
{
|
||||
if (!toplevel_bindings_p ())
|
||||
error ("strong using only meaningful at namespace scope");
|
||||
else
|
||||
else if (namespace != error_mark_node)
|
||||
DECL_NAMESPACE_ASSOCIATIONS (namespace)
|
||||
= tree_cons (current_namespace, 0,
|
||||
DECL_NAMESPACE_ASSOCIATIONS (namespace));
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c++/16301
|
||||
* g++.dg/lookup/strong-using-4.C: New test.
|
||||
|
||||
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR middle-end/16567
|
||||
|
8
gcc/testsuite/g++.dg/lookup/strong-using-4.C
Normal file
8
gcc/testsuite/g++.dg/lookup/strong-using-4.C
Normal file
@ -0,0 +1,8 @@
|
||||
// PR c++/16301
|
||||
|
||||
// { dg-do compile }
|
||||
|
||||
namespace NS2
|
||||
{
|
||||
using namespace NS1 __attribute__ ((strong)); // { dg-error "" }
|
||||
}
|
Loading…
Reference in New Issue
Block a user