This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16295] -pedantic option resolves compiler error "sorry, unimplemented: ..."
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2004 15:00:03 -0000
- Subject: [Bug c++/16295] -pedantic option resolves compiler error "sorry, unimplemented: ..."
- References: <20040630113614.16295.kai.ludwig@uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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