This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53573] template type dependent name resolution broken
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 05 Jun 2012 11:33:59 +0000
- Subject: [Bug c++/53573] template type dependent name resolution broken
- Auto-submitted: auto-generated
- References: <bug-53573-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53573
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-05 11:33:59 UTC ---
(In reply to comment #12)
> (In reply to comment #10)
>
> although -fpermissive allows the code to compile (in some circumstances) it
> does not in all, and it also produces incorrect output, for example:
-fpermissive is a kluge to allow non-standard code to compile, so *obviously*
it gives the wrong result in some cases, that's the point!
It allows comment 1 to compile, as the diagnostic indicates. If you don't like
the results of using -fpermissive then fix your code and don't use it.