This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/12221] fstream.tcc:463: error: expected unqualified-id


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12221



------- Additional Comments From gdr at integrable-solutions dot net  2003-09-09 10:18 -------
Subject: Re:  New: fstream.tcc:463: error: expected unqualified-id

"alexander dot riesen at synopsys dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| For such code:
| 
| #include <algorithm>
| // some header file doing #define:
| #define min(a,b) ((a)<(b)?(a): (b))
| #include <fstream>

This is not a problem in the library.  The code is simply bogus. 
min is a reserved name.  This PR should be resolved invalid.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]