Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2006-02-07 11:29:34


Andy Little wrote:

[...]
> gcc 4.0.1 error:
>
> test.cpp: In member function 'my::udt<__typeof__
> (boost::type_of::ensure_obj(((T)(1) + (T1)(1))))>
> my::udt<T>::operator+(const my::udt<T1>&) const [with T1 = double, T =
> int]': test.cpp:26: internal compiler error: in write_type, at
> cp/mangle.c:1646 Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>

I reported this and got this response (FYI):
------- Additional Comments From jakub_at_[hidden] 2006-02-07 11:15 EST -------
This is a well known very old problem. Simply avoid using typeof in template
arguments.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk