> I'm not sure that the C++ testcase is in fact valid.  A lawyer would
> have to actually weigh in on that claim.

OK.  But we have valid Ada testcases exhibiting the problem.

> Try again on ia32 with -fpic.  That should go through
> dw2_force_const_mem just the same.

Right, but the problem doesn't trigger, probably because of the relative 
encoding:

.LLSDACSE3:
        .byte   0x1
        .byte   0x0
        .align 4
        .long   DW.ref._ZTIZ3foovE1S-.

> I don't think this is an EH problem at all.  I think the test case
> is either invalid, or that the bug is in the C++ front end in how we
> mangle (or not) the local class.

Yes, I think that's the crux of the matter: for the time being, neither the 
C++ nor the Ada front-end mangles local exceptions.  Either they should or 
the problem lies in the EH machinery.

-- 
Eric Botcazou

Reply via email to