[Bug c++/42067] Misleading error message for misusing a type

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 16 17:05:00 GMT 2009



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-11-16 17:04 -------
Comeau online tester gives:

"ComeauTest.c", line 4: error: parameter "string" is not a type name
  int fn(string& string, string& head);

Which is only slightly better.

The trunk gives a column number:
t.cc:3:24: error: 'string' is not a type

Which shows where the problem is.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic


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



More information about the Gcc-bugs mailing list