public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47343] New: incorrect location for declaration of class template partial specialization
@ 2011-01-18 13:14 redi at gcc dot gnu.org
2012-11-15 2:28 ` [Bug c++/47343] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-18 13:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47343
Summary: incorrect location for declaration of class template
partial specialization
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
template<class T>
struct X : T
{
void f();
};
template<class T>
inline void
X<T>::f()
{ }
template<typename T>
struct Y
{ };
template<class T>
struct X< Y<T> >; // here
template<class T>
inline void
X< Y<T> >::f() // xxx
{ }
ps2.cc:21:16: error: invalid use of incomplete type 'struct X<Y<T> >'
ps2.cc:2:10: error: declaration of 'struct X<Y<T> >'
The declaration of the partial specialization is on line 17 not line 2
(related to PR 47342)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/47343] incorrect location for declaration of class template partial specialization
2011-01-18 13:14 [Bug c++/47343] New: incorrect location for declaration of class template partial specialization redi at gcc dot gnu.org
@ 2012-11-15 2:28 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-15 2:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47343
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.8.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-15 02:28:15 UTC ---
Fixed by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193524
pt.cc:21:16: error: invalid use of incomplete type ‘struct X<Y<T> >’
X< Y<T> >::f() // xxx
^
pt.cc:17:10: error: declaration of ‘struct X<Y<T> >’
struct X< Y<T> >; // here
^
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-15 2:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 13:14 [Bug c++/47343] New: incorrect location for declaration of class template partial specialization redi at gcc dot gnu.org
2012-11-15 2:28 ` [Bug c++/47343] " redi 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).