public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/14622] type mismatch in explicit template instantiation not detected [not found] <bug-14622-1824@http.gcc.gnu.org/bugzilla/> @ 2007-02-04 21:30 ` patchapp at dberlin dot org 2007-02-12 22:17 ` simartin at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: patchapp at dberlin dot org @ 2007-02-04 21:30 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from patchapp at dberlin dot org 2007-02-04 21:30 ------- Subject: Bug number PR c++/14622 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00342.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/14622] type mismatch in explicit template instantiation not detected [not found] <bug-14622-1824@http.gcc.gnu.org/bugzilla/> 2007-02-04 21:30 ` [Bug c++/14622] type mismatch in explicit template instantiation not detected patchapp at dberlin dot org @ 2007-02-12 22:17 ` simartin at gcc dot gnu dot org 2007-02-12 22:25 ` simartin at gcc dot gnu dot org 2007-09-04 15:01 ` pcarlini at suse dot de 3 siblings, 0 replies; 5+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-02-12 22:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from simartin at gcc dot gnu dot org 2007-02-12 22:17 ------- Subject: Bug 14622 Author: simartin Date: Mon Feb 12 22:17:06 2007 New Revision: 121864 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121864 Log: PR c++/14622 * pt.c (do_decl_instantiation): Detect type mismatches in explicit instantiations for variables. Added: trunk/gcc/testsuite/g++.dg/template/instantiate9.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.old-deja/g++.pt/instantiate12.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/14622] type mismatch in explicit template instantiation not detected [not found] <bug-14622-1824@http.gcc.gnu.org/bugzilla/> 2007-02-04 21:30 ` [Bug c++/14622] type mismatch in explicit template instantiation not detected patchapp at dberlin dot org 2007-02-12 22:17 ` simartin at gcc dot gnu dot org @ 2007-02-12 22:25 ` simartin at gcc dot gnu dot org 2007-09-04 15:01 ` pcarlini at suse dot de 3 siblings, 0 replies; 5+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-02-12 22:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from simartin at gcc dot gnu dot org 2007-02-12 22:25 ------- Fixed on the mainline. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/14622] type mismatch in explicit template instantiation not detected [not found] <bug-14622-1824@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2007-02-12 22:25 ` simartin at gcc dot gnu dot org @ 2007-09-04 15:01 ` pcarlini at suse dot de 3 siblings, 0 replies; 5+ messages in thread From: pcarlini at suse dot de @ 2007-09-04 15:01 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from pcarlini at suse dot de 2007-09-04 15:01 ------- Fixed for 4.3.0. -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/14622] New: type mismatch in explicit template instantiation not detected @ 2004-03-17 22:19 jens dot maurer at gmx dot net 2004-03-18 0:19 ` [Bug c++/14622] " pinskia at gcc dot gnu dot org 0 siblings, 1 reply; 5+ messages in thread From: jens dot maurer at gmx dot net @ 2004-03-17 22:19 UTC (permalink / raw) To: gcc-bugs The following code should produce an error for the explicit template instantiation, because the type given for the static variable doesn't match the one in the class template. None of the following gcc versions produces an error: gcc version 2.95.3 20010315 (release) gcc version 3.3 gcc version 3.5.0 20040118 (experimental) gcc version 3.5.0 20040317 (experimental) template<class T> class A { static T a; }; template<class T> T A<T>::a; class B { }; template int A<B>::a; // type mismatch -- Summary: type mismatch in explicit template instantiation not detected Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jens dot maurer at gmx dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/14622] type mismatch in explicit template instantiation not detected 2004-03-17 22:19 [Bug c++/14622] New: " jens dot maurer at gmx dot net @ 2004-03-18 0:19 ` pinskia at gcc dot gnu dot org 0 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-03-18 0:19 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-18 00:19 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |accepts-invalid Known to fail| |2.95.3 3.3.1 3.0.4 3.4.0 | |3.5.0 Last reconfirmed|0000-00-00 00:00:00 |2004-03-18 00:19:29 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14622 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-04 15:01 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-14622-1824@http.gcc.gnu.org/bugzilla/> 2007-02-04 21:30 ` [Bug c++/14622] type mismatch in explicit template instantiation not detected patchapp at dberlin dot org 2007-02-12 22:17 ` simartin at gcc dot gnu dot org 2007-02-12 22:25 ` simartin at gcc dot gnu dot org 2007-09-04 15:01 ` pcarlini at suse dot de 2004-03-17 22:19 [Bug c++/14622] New: " jens dot maurer at gmx dot net 2004-03-18 0:19 ` [Bug c++/14622] " pinskia 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).