------- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-21 20:36 -------
My reduced testcase, you get the following error:
t.cc: In instantiation of ‘a<float>’:
t.cc:11:   instantiated from here
t.cc:3: error: ‘float’ is not a class, struct, or union type


I don't see how this is the incorrect diagnostic for this case.
Maybe it should reference line 7 but that is asking for an improvement.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-21 20:36:45
               date|                            |
            Summary|bogus diagnostic from       |diagnostic for instantiation
                   |unidentified template       |should also reference the
                   |                            |function which it is where
                   |                            |the instantiation happens


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

Reply via email to