public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3086: [2003-01-02]Suggested extension to a template related warning.
@ 2003-05-08 21:49 bangerth
  0 siblings, 0 replies; only message in thread
From: bangerth @ 2003-05-08 21:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, whitley

Synopsis: [2003-01-02]Suggested extension to a template related warning.

State-Changed-From-To: suspended->closed
State-Changed-By: bangerth
State-Changed-When: Thu May  8 21:49:11 2003
State-Changed-Why:
    In this particular case, I think there's not much we can do.
    Your code looks like this:
    ---------------
      static const int FOO = 5;
      Handle<MyPrivateData<FOO>> handle(pd);
    ----------------------
    So FOO is an integer, and the token >> would be valid after
    that if "handle" were another valid integer. Gcc tries some
    second guessing, in that it assumes that handle is just
    undefined, and it proposes this in its error message, but
    the problem is somewhere else. I think in this case every
    other solution is just as good or bad as the present state.
    
    W.

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-08 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 21:49 c++/3086: [2003-01-02]Suggested extension to a template related warning bangerth

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).