This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45964] The compiler does not complain about a required template keyword.
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Oct 2010 12:39:16 +0000
- Subject: [Bug c++/45964] The compiler does not complain about a required template keyword.
- Auto-submitted: auto-generated
- References: <bug-45964-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45964
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |INVALID
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-11 12:39:04 UTC ---
(In reply to comment #3)
> Yes, but I disagree that it's required. I was wrong when I said it's not a
> member template specialization, but I think 'template' is not required because
> B<b> refers to a member of the current instantiation, as defined by 14.6.2.1
Correct.
> Jason, could you comment? Was this a bug in older versions of G++ which is now
> fixed?
Yes, this was fixed when I implemented DR 224
(http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#224).