[Bug c++/56936] gcc don't show error when accessing to missing member of current instantiation

vanyacpp at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 13 11:06:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56936

--- Comment #4 from Ivan Sorokin <vanyacpp at gmail dot com> 2013-04-13 11:06:35 UTC ---
(In reply to comment #3)
> [temp.res]/8 "If no valid specialization can be generated for a template, and
> that template is not instantiated, the template is ill-formed, no diagnostic
> required."
> 
> No diagnostic required.

Yes, but diagnostic would be very helpful.

Moreover clang prints error on this code.



More information about the Gcc-bugs mailing list