[Bug c++/16295] -pedantic option resolves compiler error "sorry, unimplemented: ..."
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 30 15:07:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-06-30 15:04 -------
And as a last note: If I fix the code like so:
template<template<class, class> class Q1, class GT1, class Head1,
class Tail1, class DU1, class U1,
template<class, class> class Q2, class GT2, class Head2,
class Tail2, class DU2, class U2, class DT>
struct GenerateVariable
<Q1<Quantity<GT1, Typelist<Head1, Tail1>, DU1, DT>, U1>,
Q2<Quantity<GT2, Typelist<Head2, Tail2>, DU2, DT>, U2> >
{
private:
typedef typename Dimension<GT1>::template Add<Dimension<GT2> >::Class
AddT;
typedef NonPrefixable<GenericClass<AddT>, GenericUnit> AddU;
//...
};
then it compiles cleanly. Note that the 'template' keyword in the declaration
of AddT is necessary. I removed the erroneous third template parameter
in the declaration of AddU, but I have of course no clue what you originally
intended there.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16295
More information about the Gcc-bugs
mailing list