[Bug c++/50870] [C++0x] [4.6/4.7 Regression] ICE with decltype, operator->, and default template arguments

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 28 15:54:00 GMT 2011


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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-28 15:53:39 UTC ---
(In reply to comment #4)
> HJ, any chance you can figure out when we regressed for testcase in Comment #3
> ?

I tried different versions of GCC, I got

pr50870.cc:8: error: expected type-specifier before ‘decltype’
pr50870.cc:8: error: expected `>' before ‘decltype’
pr50870.cc:12: error: template argument 4 is invalid
pr50870.cc:12: error: invalid type in declaration before ‘;’ token



More information about the Gcc-bugs mailing list