public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12321] New: compile error
@ 2003-09-17 23:33 emild at collectivestudios dot com
2003-09-17 23:38 ` [Bug c++/12321] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: emild at collectivestudios dot com @ 2003-09-17 23:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12321
Summary: compile error
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: emild at collectivestudios dot com
CC: gcc-bugs at gcc dot gnu dot org
The following code snippet fails to compile on gcc version 3.2.3 (mingw special
20030504-1):
<c++>
template <class T>
class a
{
private:
void foo() { }
typedef void (a::*unspecified_bool_type)();
public:
operator unspecified_bool_type() const;
};
template <class T>
inline
a<T>::operator typename a<T>::unspecified_bool_type() const
{
return 0;
}
int main()
{
if( a<int>() )
{
}
return 0;
}
</c++>
Compiler output:
Test.cpp:14: no `a<T>::operator void (a<T>::*)()() const' member function
declared in class `a<T>'
Test.cpp:14: template definition of non-template `a<T>::operator void (a<T>::*)
()() const'
This code compiles on both .NET and Comeau (in strict mode), and I believe it
to be valid C++.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/12321] compile error
2003-09-17 23:33 [Bug c++/12321] New: compile error emild at collectivestudios dot com
@ 2003-09-17 23:38 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-17 23:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12321
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |rejects-valid
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-17 22:28 -------
This is already fixed on the mainline and since this is not a regression closing as fixed. The
mainline will be come 3.4.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-17 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 23:33 [Bug c++/12321] New: compile error emild at collectivestudios dot com
2003-09-17 23:38 ` [Bug c++/12321] " pinskia at gcc dot gnu dot 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).