public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19502] New: duplicate diagnostic for invalid template constant parameter
@ 2005-01-18 10:49 reichelt at gcc dot gnu dot org
  2005-01-18 14:37 ` [Bug c++/19502] " pinskia at gcc dot gnu dot org
  2005-08-24 19:40 ` reichelt at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-18 10:49 UTC (permalink / raw)
  To: gcc-bugs

Since gcc 3.3.3 the compiler issues a duplicate diagnostic for the
following invalid code snippet (before we got an ICE):

=========================================
template<typename T> struct A
{
    template<T> struct B;
};

A<void> a;
=========================================

bug.cc: In instantiation of 'A<void>':
bug.cc:6:   instantiated from here
bug.cc:3: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: error: 'void' is not a valid type for a template constant parameter

-- 
           Summary: duplicate diagnostic for invalid template constant
                    parameter
           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=19502


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

end of thread, other threads:[~2021-08-01 23:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-18 10:49 [Bug c++/19502] New: duplicate diagnostic for invalid template constant parameter reichelt at gcc dot gnu dot org
2005-01-18 14:37 ` [Bug c++/19502] " pinskia at gcc dot gnu dot org
2005-08-24 19:40 ` reichelt at gcc dot gnu dot org
     [not found] <bug-19502-4@http.gcc.gnu.org/bugzilla/>
2021-08-01 23:32 ` pinskia at gcc dot gnu.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).