This is the mail archive of the gcc-patches@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] |
The __glibcxx_class_requires macro in include/ext/enc_filebuf.h is at function scope. This causes compilation errors in the ext/enc_filebuf testsuite files when --enable-concept-checks is used since it expands to a template definition at function scope, which is illegal. 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org> * include/ext/enc_filebuf.h: Move concept-check macro to class scope. OK for mainline and 3.4? jon N.B. Most other classes in v3 state the concept requirements at the top of the class definition, but in enc_filebuf the concept check uses a typedef which isn't declared until the public part of the class body, so I put the concept check at the end. I don't think this matters, since in this case we're not checking a user-supplied template argument but std::__enc_traits, so visibility of the check isn't important.
Attachment:
libstdc++-enc_filebuf_concept_ck.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |