[Bug c++/31749] [4.1/4.2/4.3 regression] ICE with invalid redeclaration of builtin
aaw at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 6 21:24:00 GMT 2007
------- Comment #5 from aaw at gcc dot gnu dot org 2007-08-06 21:24 -------
No segfault, but it does give an "is already declared in this scope" error.
Contrary to the claim in the initial bug submission, this is valid code.
>From paragraph 10, section 7.3.3 of the C++ standard:
Since a using-declaration is a declaration, the restrictions on declarations of
the same name in the same declarative region (3.3) also apply to
using-declarations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31749
More information about the Gcc-bugs
mailing list