This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.95 ICE using typeof extension
- To: gcc-bugs at gcc dot gnu dot org
- Subject: g++ 2.95 ICE using typeof extension
- From: Hyman Rosen <hymie at jyacc dot com>
- Date: Fri, 13 Aug 1999 15:59:56 -0400
The following C++ code, which uses the non-standard typeof extension,
cause gcc 2.95 to complain:
9: Internal compiler error.
---------------------------------------------------------------------------
template < typename T > struct object
{
static T ⁢
};
template < typename A, typename B, typename C >
typeof(object<A>::it * object<B>::it + object<C>::it)
MultiplyAdd(const A &a, const B &b, const C &c)
{
return a * b + c;
}
int main()
{
return MultiplyAdd(1, 2, 3);
}