------- Comment #1 from bangerth at gmail dot com 2009-08-25 15:24 -------
Confirmed:
-----------------------------
template <class T> struct Base {
template <class D> class I {};
};
template <class T> struct Derived {
struct II {
friend class Base<T>::template I<II>;
};
};
Derived<int>::II i;
---------------------------------
g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ x.cc -c
x.cc:7:45: error: expected identifier before ';' token
x.cc:7:9: error: friend declaration does not name a class or function
I am fairly sure we have this bug in the database somewhere already.
For the record, icc accepts the code.
Not a regression.
W.
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-08-25 15:24:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40664