[Bug c++/16295] -pedantic option resolves compiler error "sorry, unimplemented: ..."
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 30 15:04:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-06-30 15:00 -------
OK, here's something small:
----------------
template <typename> struct O {
template <typename> struct I {
struct II {};
};
};
template <typename T> struct X {
typedef typename O<T>::I<int>::II type1;
typedef O<type1> type2;
};
----------------------
It still crashes with -pedantic, so something is different. Note that
the crash also goes away if I fix the code: one has to write
typedef typename O<T>::template I<int>::II type1;
However, this is fixed in 3.4 and mainline, where we get an error message
about this, rather than an ICE.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16295
More information about the Gcc-bugs
mailing list