public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9310: FD_ZERO etc. macros give strange errors with templates
@ 2003-01-14 16:28 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-14 16:28 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, joona.kiiski, nobody
Synopsis: FD_ZERO etc. macros give strange errors with templates
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 14 08:28:10 2003
State-Changed-Why:
gcc2.95 is a dead branch. Since it works with 3.0 and later,
there is no need to keep this report open. If you need to
make this work on your platform with 2.95, you will have
to find a work-around; otherwise try to update your
compiler.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9310
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/9310: FD_ZERO etc. macros give strange errors with templates
@ 2003-01-14 16:16 joona.kiiski
0 siblings, 0 replies; 2+ messages in thread
From: joona.kiiski @ 2003-01-14 16:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 9310
>Category: c++
>Synopsis: FD_ZERO etc. macros give strange errors with templates
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Jan 14 08:16:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: joona.kiiski@iki.fi
>Release: g++ 2.95.4
>Organization:
>Environment:
Unix / Debian unstable
>Description:
#include <sys/select.h>
using namespace std;
template <class Type>
class myclass1
{
public:
void test()
{
fd_set myfs;
FD_ZERO(&myfs);
}
};
struct dum {};
int main()
{
myclass1<dum> temp;
temp.test();
}
>How-To-Repeat:
Compile code above. Note this works fine with g++ 3.0 and higher, but not with 2.95.4. I got this error message:
g++ -c -o main.o main.cc
main.cc: In method `void myclass1<dum>::test()':
main.cc:20: instantiated from here
main.cc:11: `volatile' undeclared (first use this function)
main.cc:11: (Each undeclared identifier is reported only once
main.cc:11: for each function it appears in.)
main.cc:11: warning: qualifier ignored on asm
make: *** [main.o] Error 1
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-14 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 16:28 c++/9310: FD_ZERO etc. macros give strange errors with templates bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 16:16 joona.kiiski
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).