public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18698] New: [3.4/4.0 regression] Error message using "using" for code not using "using" ;-)
@ 2004-11-28  0:44 reichelt at gcc dot gnu dot org
  2004-11-28  0:48 ` [Bug c++/18698] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-28  0:44 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes a strange error message:

===================================
template<int> struct A
{
    ::A~();
};
===================================

  bug.cc:3: error: using-declaration for non-member at class scope
                   ^^^^^^^^^^^^^^^^^
  bug.cc:3: error: expected ';' before '~' token

This was introduced in gcc 3.4.0. With gcc 3.3.5 I get

  bug.cc:3: error: invalid use of template-name 'A' in a declarator
  bug.cc:3: error: syntax error before `~' token

which makes more sense.

-- 
           Summary: [3.4/4.0 regression] Error message using "using" for
                    code not using "using" ;-)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-18698-1771@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-31  2:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-28  0:44 [Bug c++/18698] New: [3.4/4.0 regression] Error message using "using" for code not using "using" ;-) reichelt at gcc dot gnu dot org
2004-11-28  0:48 ` [Bug c++/18698] " pinskia at gcc dot gnu dot org
2004-12-23 15:34 ` lerdsuwa at gcc dot gnu dot org
2005-01-21  8:15 ` pinskia at gcc dot gnu dot org
2005-01-21  8:17 ` pinskia at gcc dot gnu dot org
2005-05-19 17:49 ` [Bug c++/18698] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-06-17 11:26 ` redi at gcc dot gnu dot org
2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
2005-09-27 16:24 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-18698-1771@http.gcc.gnu.org/bugzilla/>
2005-10-31  2:00 ` mmitchel at gcc dot gnu dot org

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