This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16529] [3.4/3.5 regression] ICE for: namespace-alias shall no be declared as the name of any other entity
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2004 19:21:26 -0000
- Subject: [Bug c++/16529] [3.4/3.5 regression] ICE for: namespace-alias shall no be declared as the name of any other entity
- References: <20040713190608.16529.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-13 19:21 -------
Confirmed. In fact, I get ICEs with newer versions of gcc with your code:
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc
x.cc:12: redefinition of `m'
x.cc:2: `m' previously declared here
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc:12: error: redefinition of `m'
x.cc:2: error: `m' previously declared here
x.cc:12: internal compiler error: tree check: expected var_decl, have
namespace_decl in warn_extern_redeclared_static, at cp/decl.c:3278
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:12: internal compiler error: tree check: expected var_decl, have
namespace_decl in duplicate_decls, at cp/decl.c:1751
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc:12: internal compiler error: tree check: expected var_decl, have
namespace_decl in duplicate_decls, at cp/decl.c:1745
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
The ICEs are a regression, as is the fact that we now don't even get to see
the original error message any more.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |3.3.4 3.4.0 3.5.0
Known to work| |3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-07-13 19:21:21
date| |
Summary|namespace-alias shall no be |[3.4/3.5 regression] ICE
|declared as the name of any |for: namespace-alias shall
|other entity |no be declared as the name
| |of any other entity
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16529