[GCC-XML] ICE from current GCC-XML

Patrick Hartling patrick.hartling at gmail.com
Wed Apr 22 17:46:50 EDT 2009


Brad King wrote:
> Patrick Hartling wrote:
>> I am trying to get GCC-XML to be able to process a large C++ code base on
>> Windows. Things work very well on Linux and Mac OS X, but on Windows,
>> I get
>> an internal compiler error. I have built GCC-XML from the CVS HEAD
>> sources
>> as of yesterday, and I am using it to emulate Visual C++ 9.0 SP1. The
>> error
>> output is attached, and the preprocessed source can be found here:
>>
>>    http://www.infiscape.com/misc/output.cpp.bz2
>>
>> Are there any tips for debugging something like this?
> 
> Thanks for the preprocessed file.  I did a binary search through it,
> incrementally truncating the second half of the remaining region.
> Here is a minimal case to reproduce the ICE:
> 
>   class A {};
>   struct __attribute__((dllimport)) B: virtual public A { ~B() {} };
> 
> It only happens on windows.  It has something to do with the dllimport
> attribute, virtual inheritance, and the destructor.  I'll investigate
> further when I get a chance.
> 
> In your file, 'B' is really LogOStream, and 'A' is std::ostream (which
> is what actually does the virtual inheritance from something else).
> 
>> In addition to the ICE, I am getting some unexpected errors about
>> there not
>> being an overload of operator<< for the std::setbase() case. I do not
>> know
>> if that is strictly a problem, but if there is a way to fix that, too,
>> that
>> would be great.
> 
> I'll look at this if it still happens after fixing the first issue.

Wow, thanks for the fast response! I wasn't even close to figuring out that
that was the cause. I look forward to hearing what you conclude.

 -Patrick


-- 
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20090422/c3cb8997/attachment.sig>


More information about the gccxml mailing list