I get a reduced test case for this bug.  Attached here.

segv fault is cause by following code snip in cp/mangle.c

static tree
mangle_decl_string (const tree decl)
{
...
   input_location = DECL_SOURCE_LOCATION (decl);  // input_location is ZERO
...
   write_mangled_name (decl, true);  // Segv fault is triggers in child
calls.
}

This piece of code is backported from gcc 4.5 to fix GCC PR42748,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748

The decl is __PRETTY_FUNCTION__, and input_location on FSF 4.5 is NOT
zero.    DECL_SOURCE_LOCATION should return non-zero value for
__PRETTY_FUNCTION__, so that it could be mangled. 

Still investigating it.

** Bug watch added: GCC Bugzilla #42748
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748

** Attachment added: "reduced test case"
   
https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/647597/+attachment/1652552/+files/WAbstractArea.C

-- 
Internal compiler error while building package 'witty'
https://bugs.launchpad.net/bugs/647597
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to