https://bugs.llvm.org/show_bug.cgi?id=38144
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard-l...@metafoo.co.uk
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
[namespace.udecl]p10: "A using-declaration is a declaration and can therefore
be used repeatedly where (and only where) multiple declarations are allowed"
Block scope is a place where multiple declarations are allowed. GCC allows
this, for example:
void f() {
extern int i;
extern int i;
}
So I would argue that this is a GCC bug. However, see core issue 36
(http://wg21.link/cwg36) -- CWG does not have a consensus position on the
desired validity of this example.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs