public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59988] New: Failing to specialize template class
@ 2014-01-29 18:25 tom at failproof dot be
2014-01-29 18:27 ` [Bug c++/59988] " tom at failproof dot be
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: tom at failproof dot be @ 2014-01-29 18:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
Bug ID: 59988
Summary: Failing to specialize template class
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tom at failproof dot be
Created attachment 31984
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31984&action=edit
GCC output
$ uname -a
Linux TOM-UBUNTU 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
GCC seems to be having trouble specializing a template class.
The output when running this file is:
Test1<T>: 0
Test2<T>: 0
TestV<T>: 0
while the expected output is:
Test1<T>: 1
Test2<T>: 0
TestV<T>: 1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
@ 2014-01-29 18:27 ` tom at failproof dot be
2014-01-29 18:29 ` tom at failproof dot be
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tom at failproof dot be @ 2014-01-29 18:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #1 from tom at failproof dot be ---
Created attachment 31985
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31985&action=edit
Command-line output
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
2014-01-29 18:27 ` [Bug c++/59988] " tom at failproof dot be
@ 2014-01-29 18:29 ` tom at failproof dot be
2014-05-11 14:37 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tom at failproof dot be @ 2014-01-29 18:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #2 from tom at failproof dot be ---
Created attachment 31986
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31986&action=edit
Problematic source file
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
2014-01-29 18:27 ` [Bug c++/59988] " tom at failproof dot be
2014-01-29 18:29 ` tom at failproof dot be
@ 2014-05-11 14:37 ` paolo.carlini at oracle dot com
2014-12-14 14:48 ` ville.voutilainen at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-05-11 14:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Not having studied your code in any detail, I note that current clang gives the
same output. And, well, "having trouble specializing a template class" seems a
little generic ;)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
` (2 preceding siblings ...)
2014-05-11 14:37 ` paolo.carlini at oracle dot com
@ 2014-12-14 14:48 ` ville.voutilainen at gmail dot com
2015-03-24 10:52 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14 14:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ville.voutilainen at gmail dot com
--- Comment #4 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
This looks very similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54890
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
` (3 preceding siblings ...)
2014-12-14 14:48 ` ville.voutilainen at gmail dot com
@ 2015-03-24 10:52 ` paolo.carlini at oracle dot com
2015-03-24 10:58 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-24 10:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I'm adding a testcase and closing the bug. By the way, both current EDG and
clang agree with GCC.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
` (4 preceding siblings ...)
2015-03-24 10:52 ` paolo.carlini at oracle dot com
@ 2015-03-24 10:58 ` paolo at gcc dot gnu.org
2015-03-24 11:04 ` paolo.carlini at oracle dot com
2015-03-24 11:05 ` paolo at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-03-24 10:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Mar 24 10:50:36 2015
New Revision: 221623
URL: https://gcc.gnu.org/viewcvs?rev=221623&root=gcc&view=rev
Log:
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59988
* g++.dg/cpp0x/vt-59988.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/vt-59988.C
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
` (5 preceding siblings ...)
2015-03-24 10:58 ` paolo at gcc dot gnu.org
@ 2015-03-24 11:04 ` paolo.carlini at oracle dot com
2015-03-24 11:05 ` paolo at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-24 11:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/59988] Failing to specialize template class
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
` (6 preceding siblings ...)
2015-03-24 11:04 ` paolo.carlini at oracle dot com
@ 2015-03-24 11:05 ` paolo at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-03-24 11:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59988
--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Mar 24 10:51:38 2015
New Revision: 221624
URL: https://gcc.gnu.org/viewcvs?rev=221624&root=gcc&view=rev
Log:
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59988
* g++.dg/cpp0x/vt-59988.C: New.
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-03-24 10:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29 18:25 [Bug c++/59988] New: Failing to specialize template class tom at failproof dot be
2014-01-29 18:27 ` [Bug c++/59988] " tom at failproof dot be
2014-01-29 18:29 ` tom at failproof dot be
2014-05-11 14:37 ` paolo.carlini at oracle dot com
2014-12-14 14:48 ` ville.voutilainen at gmail dot com
2015-03-24 10:52 ` paolo.carlini at oracle dot com
2015-03-24 10:58 ` paolo at gcc dot gnu.org
2015-03-24 11:04 ` paolo.carlini at oracle dot com
2015-03-24 11:05 ` paolo 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).