[Bug c++/70286] [5 Regression] ICE on template specialization

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 18 08:28:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70286

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.9.3, 5.2.0, 6.0
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|                            |2016-03-18
     Ever confirmed|0                           |1
            Summary|ICE on template             |[5 Regression] ICE on
                   |specialization              |template specialization
   Target Milestone|---                         |5.4
      Known to fail|                            |5.3.0, 5.3.1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Trunk and 4.9 say

> ./cc1plus  -quiet t.C
t.C:2:18: error: ‘B’ is not a class template
 template<>struct B<>:
                  ^
t.C:2:21: error: expected class-name at end of input
 template<>struct B<>:
                     ^
t.C:2:21: error: expected ‘{’ at end of input
rguenther@g29:/abuild/rguenther/trunk3-g/gcc> ./cc1plus  -quiet t.C -std=c++14
t.C:2:18: error: ‘B’ is not a class template
 template<>struct B<>:
                  ^
t.C:2:21: error: expected class-name at end of input
 template<>struct B<>:
                     ^
t.C:2:21: error: expected ‘{’ at end of input

the issue was introduced between 5.2.0 and 5.3.0.


More information about the Gcc-bugs mailing list