This is the mail archive of the gcc@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 following testcase fails with the new parser while it succeeds with other compilers: template<class T, class U> struct UnaryReturn { typedef T Type_t; }; struct foo { template <class T> typename UnaryReturn<T, int>::Type_t bar(); }; template<class T> struct UnaryReturn<T, int> { typedef bool Type_t; };g++ -c -Wall insbefdecl.cppinsbefdecl.cpp:14: error: specialization of `UnaryReturn<T, int>' after instantiation
This is a bug -- but not in the new parser. This is lingering fallout from the now-almost-gone implicit typename extension. I will use this as the excuse to kill the last vestiges of that ugliness. Thanks, -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |