Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-16 09:29:30


Markus Schöpflin <markus.schoepflin_at_[hidden]> writes:

> I think I have found the source of the internal compiler errors
> currently preventing boost.test to work with the toolset
> tru64cxx65. The following small sample fails to compile and gives me
> an internal compiler error when compiled with cxx.
>
> ---%<---
> #include <boost/test/detail/basic_cstring/basic_cstring.hpp>
>
> using namespace boost::unit_test;
>
> // void foo(const_string const & s) // ok
> void foo(const_string s) // not ok
> {
> }
>
> int main()
> {
> foo(literal_string("foo"));
> return 0;
> }
> --->%---
>
> Changing the declaration of foo() makes the compiler error go
> away. I'm currently thinking that the compiler perhaps has problems
> with the automatically generated copy constructors for the class
> basic_cstring.
>
> I tried writing an explicit copy constructor for basic_cstring but
> this doesn't seem to help. The compiler still crashes.
>
> Maybe someone else working with this platform has any ideas...

I suggest minimizing the example, including the basic_cstring part.
We can then report the bug to EDG as well as Compaq. EDG may have a
workaround.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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