public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46381] New: G++ doesn't catch duplicate members produced by template instantation
@ 2010-11-08 21:32 jason at gcc dot gnu.org
2021-08-05 7:34 ` [Bug c++/46381] G++ doesn't catch duplicate members produced by template instantiation pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-08 21:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46381
Summary: G++ doesn't catch duplicate members produced by
template instantation
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jason@gcc.gnu.org
CC: jason@gcc.gnu.org
Core issue 996:
template<typename T, typename U>
struct Outer {
template<typename X, typename Y> struct Inner;
template<typename Y> struct Inner<T, Y> {};
template<typename Y> struct Inner<U, Y> {};
};
Outer<int, int> outer; // #1
Here the instantiation of Outer<int, int> is ill-formed, because the two
partial specializations of Inner have the same arguments, but we don't
currently give an error.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-05 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 21:32 [Bug c++/46381] New: G++ doesn't catch duplicate members produced by template instantation jason at gcc dot gnu.org
2021-08-05 7:34 ` [Bug c++/46381] G++ doesn't catch duplicate members produced by template instantiation 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).