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; 3+ 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] 3+ messages in thread
* [Bug c++/19502] duplicate diagnostic for invalid template constant parameter 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 ` pinskia at gcc dot gnu dot org 2005-08-24 19:40 ` reichelt at gcc dot gnu dot org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-18 14:37 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-18 14:29 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-01-18 14:29:59 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19502 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/19502] duplicate diagnostic for invalid template constant parameter 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 1 sibling, 0 replies; 3+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-08-24 19:40 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-24 19:38 ------- This is probably due to the fact that lookup_template_class is called twice as the comment above the function states: ??? Note that this function is currently called *twice* for each template-id: the first time from the parser, while creating the incomplete type (finish_template_type), and the second type during the real instantiation (instantiate_template_class). This is surely something that we want to avoid. It also causes some problems with argument coercion (see convert_nontype_argument for more information on this). */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19502 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-24 19:39 UTC | newest] Thread overview: 3+ 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
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).