This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11507] [3.4 regression] parser fails to recognize namespace
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2003 23:41:21 -0000
- Subject: [Bug c++/11507] [3.4 regression] parser fails to recognize namespace
- References: <20030712161306.11507.kai-gcc-bugs@khms.westfalen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11507
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-12 23:41:20
date| |
Summary|[3.4 regression]parser fails|[3.4 regression] parser
|to recognize namespace; |fails to recognize namespace
|regression to 3.3 |
------- Additional Comments From bangerth at dealii dot org 2003-07-12 23:41 -------
I don't think you technique is something I would recommend, but there is still
a bug in gcc :-)
Here's a cut-down testcase:
------------------------
namespace NS
{
void foo(bool arg1);
}
namespace M {
namespace K {
bool Bc(bool x);
}
void bar() {
NS::foo (K::Bc(true));
};
}
--------------------------
This is used to compile with 3.3, but now fails like so:
tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc: In function `void M::bar()':
x.cc:12: error: `K' is not a class-name or namespace-name
x.cc:12: error: `Bc' undeclared (first use this function)
x.cc:12: error: (Each undeclared identifier is reported only once for each
function it appears in.)
I think gcc is wrong. icc agress with me.
W.