This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10437] "using namespace" at global scope creates incorrect code
- From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 May 2014 23:52:29 +0000
- Subject: [Bug c++/10437] "using namespace" at global scope creates incorrect code
- Auto-submitted: auto-generated
- References: <bug-10437-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10437
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard-gccbugzilla@metafoo
| |.co.uk
--- Comment #11 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
(In reply to Nathan Sidwell from comment #9)
> Now the second point. This a case of SFINAE failure, no diagnostic should
> be issued.
I disagree. The failure is not in the immediate context of the substitution, so
this is a hard error. GCC seems to be doing the right thing in all cases here.