public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10627: [diagnostic] improve error message when a template is used without argument list
@ 2003-05-09 18:59 giovannibajo
  0 siblings, 0 replies; 3+ messages in thread
From: giovannibajo @ 2003-05-09 18:59 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, giovannibajo, nobody

Synopsis: [diagnostic] improve error message when a template is used without argument list

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: bajo
Responsible-Changed-When: Fri May  9 18:59:20 2003
Responsible-Changed-Why:
    Diagnostic mantainer

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10627


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/10627: [diagnostic] improve error message when a template is used without argument list
@ 2003-05-05 14:45 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-05 14:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, giovannibajo, nobody

Synopsis: [diagnostic] improve error message when a template is used without argument list

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon May  5 14:45:58 2003
State-Changed-Why:
    Confirmed. Though I'm not so sure about the whether the
    message is not actually quite good: it just says "A is
    not a type", which is true since A is a template. It's
    the implied knowledge that in this context only a type
    can appear that the message isn't transmitting.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10627


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/10627: [diagnostic] improve error message when a template is used without argument list
@ 2003-05-05 11:56 giovannibajo
  0 siblings, 0 replies; 3+ messages in thread
From: giovannibajo @ 2003-05-05 11:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10627
>Category:       c++
>Synopsis:       [diagnostic] improve error message when a template is used without argument list
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 05 11:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Giovanni Bajo
>Release:        3.4 CVS 20030503
>Organization:
>Environment:
i686-pc-cygwin
>Description:
Compiling this on mainline (3.4):
-----------------------------------------------
template <class> struct A {};

A a;
-----------------------------------------------
gccbug2.cpp:3: error: `A' does not name a type

This is a progression compared to previous versions (which
were giving a mere syntax error), but I think it could
be improved a little bit. Comeau/EDG gives:

"gccbug2.cpp", line 3: error: argument list for class template "A" is missing
  A a;
  ^

which is easier for the user.
>How-To-Repeat:
Compile the above snippet.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-09 18:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-09 18:59 c++/10627: [diagnostic] improve error message when a template is used without argument list giovannibajo
  -- strict thread matches above, loose matches on Subject: below --
2003-05-05 14:45 bangerth
2003-05-05 11:56 giovannibajo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).