c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed
bangerth@dealii.org
bangerth@dealii.org
Mon Mar 3 19:47:00 GMT 2003
Old Synopsis: Multiple using __gnu_cxx::llabs breaks compilation.
New Synopsis: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Mar 3 19:47:23 2003
State-Changed-Why:
Confirmed. The problem has nothing to do with namespace
__gnu_cxx, but indeed something with builtins. This
code also shows the problem:
-------------------------
namespace NS {
void llabs(long long x);
}
namespace std {
using NS::llabs;
using NS::llabs;
}
------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:7: error: `llabs' is already declared in this scope
If llabs is renamed to foo, then the code compiles cleanly.
This seems like a bug.
The problem occurs with 3.2, 3.3, and 3.4 branches. It
doesn't happen with 3.0.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9924
More information about the Gcc-bugs
mailing list