c++/6640: missing error hint

simon.thum@gmx.de simon.thum@gmx.de
Sun May 12 13:46:00 GMT 2002


>Number:         6640
>Category:       c++
>Synopsis:       missing error hint
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 12 13:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     simon.thum@gmx.de
>Release:        gcc 3.0.4
>Organization:
>Environment:
SuSE Linux on AMD Athlon
>Description:
The code is correctly rejected, but gcc usually gives a hint what's wrong - the typename is misspelled. But inside
templates, it seems, this hint message is not generated.
When you make the template a simple class, g++ shows an approriate and helpful message.
>How-To-Repeat:
g++ gccbug.cc
>Fix:
Enable that message for templates too.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gccbug.cc"; name="gccbug.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gccbug.cc"

CiNpbmNsdWRlIDxjc3RkbGliPgoKdGVtcGxhdGUgPGNsYXNzIFQ+IGNsYXNzIHNvbWVfdGVtcGxh
dGV7CnB1YmxpYzoKCXZvaWQgc29tZV9mbigpewoJCW5vdF9hX25hbWUgYj0gMDsKCX0KfTsKCg==



More information about the Gcc-bugs mailing list