public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49453] New: Accepts invalid syntax for partial specialization of class template where the specialization is a class template
@ 2011-06-17 13:17 Nimantha.Siriwardana at googlemail dot com
2011-10-21 16:49 ` [Bug c++/49453] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: Nimantha.Siriwardana at googlemail dot com @ 2011-06-17 13:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49453
Summary: Accepts invalid syntax for partial specialization of
class template where the specialization is a class
template
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Nimantha.Siriwardana@googlemail.com
Example:
#include <iostream>
template <typename F>
struct foo{
typedef F value_type;
};
template <typename G>
struct bar{};
//template<> <- works if commented out or not
template <typename F>
struct bar<foo<F> >
{
typename foo<F>::value_type val;
};
int main(void)
{
typedef foo<int> F;
typedef bar<F> B;
B b;
b.val = 10;
std::cout << b.val << std::endl;
return 0;
};
I have been led to believe that this is incorrect behaviour, have tested on
4.4.4 and 4.5.1 and this appears to be the same.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/49453] Accepts invalid syntax for partial specialization of class template where the specialization is a class template
2011-06-17 13:17 [Bug c++/49453] New: Accepts invalid syntax for partial specialization of class template where the specialization is a class template Nimantha.Siriwardana at googlemail dot com
@ 2011-10-21 16:49 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-21 16:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49453
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-21 16:48:59 UTC ---
Duplicate.
*** This bug has been marked as a duplicate of bug 24314 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-21 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 13:17 [Bug c++/49453] New: Accepts invalid syntax for partial specialization of class template where the specialization is a class template Nimantha.Siriwardana at googlemail dot com
2011-10-21 16:49 ` [Bug c++/49453] " paolo.carlini at oracle 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).