public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30539] New: Accepts invalid explicit specialization declaration
@ 2007-01-22 1:51 bangerth at dealii dot org
2007-01-22 16:26 ` [Bug c++/30539] " sebor at roguewave dot com
0 siblings, 1 reply; 4+ messages in thread
From: bangerth at dealii dot org @ 2007-01-22 1:51 UTC (permalink / raw)
To: gcc-bugs
The following invalid code (note the duplicate X<1>::X<1>::) is accepted
and apparently has always been:
------------
template <int dim> struct X {
void f();
};
template <> void X<1>::X<1>::f();
------------ ^^^^^^^^^^^^
--
Summary: Accepts invalid explicit specialization declaration
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/30539] Accepts invalid explicit specialization declaration
2007-01-22 1:51 [Bug c++/30539] New: Accepts invalid explicit specialization declaration bangerth at dealii dot org
@ 2007-01-22 16:26 ` sebor at roguewave dot com
0 siblings, 0 replies; 4+ messages in thread
From: sebor at roguewave dot com @ 2007-01-22 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sebor at roguewave dot com 2007-01-22 16:25 -------
Even better, this works too:
template <> void X<1>::X<2>::X<3>::X<4>::f();
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/30539] Accepts invalid explicit specialization declaration
[not found] <bug-30539-4@http.gcc.gnu.org/bugzilla/>
2012-01-03 16:08 ` paolo.carlini at oracle dot com
@ 2012-01-03 19:11 ` bangerth at gmail dot com
1 sibling, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2012-01-03 19:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539
--- Comment #3 from Wolfgang Bangerth <bangerth at gmail dot com> 2012-01-03 19:11:09 UTC ---
Excellent, and thanks! It's good to see that some of the 5+ year old reports
are still being closed on occasion :-)
(Although I have to say that this one was one of the more humorous, allowing
to write
template <> void X<1>::X<2>::X<3>::X<4>::f();
I'm almost going to miss that ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/30539] Accepts invalid explicit specialization declaration
[not found] <bug-30539-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-03 16:08 ` paolo.carlini at oracle dot com
2012-01-03 19:11 ` bangerth at gmail dot com
1 sibling, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-03 16:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC|gcc-bugs at gcc dot gnu.org |
Resolution| |FIXED
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-03 16:07:18 UTC ---
Fixed in 4.5.x.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-03 19:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-22 1:51 [Bug c++/30539] New: Accepts invalid explicit specialization declaration bangerth at dealii dot org
2007-01-22 16:26 ` [Bug c++/30539] " sebor at roguewave dot com
[not found] <bug-30539-4@http.gcc.gnu.org/bugzilla/>
2012-01-03 16:08 ` paolo.carlini at oracle dot com
2012-01-03 19:11 ` bangerth at gmail dot com
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).