[Bug c++/42056] ICE with invalid use of auto in template

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 26 18:28:00 GMT 2011


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-26 18:25:40 UTC ---
(In reply to comment #4)
> +       error ("expected an expression");

That sounds like a parse error, when the real issue is a semantic constraint
violation: it would make perfect sense to write auto(1) except that 7.1.6.4
says we can't.



More information about the Gcc-bugs mailing list