------- Comment #3 from jakub at gcc dot gnu dot org  2010-05-24 14:38 -------
Created an attachment (id=20735)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20735&action=view)
gcc46-pr42801.patch

Patch for the -O2 issue.
The standard says:
"Concrete inlined instance entries may omit attributes that are not specific to
the concrete instance (but present in the abstract instance) and need include
only attributes that are specific to the concrete instance (but omitted in the
abstract instance).", which I read as not forbidding duplication of the
DW_AT_type attribute (dropping DW_AT_type in the abstract instance doesn't seem
to be a good idea, even when bounds aren't known the type otherwise gives
useful info).  Perhaps we should handle DW_TAG_formal_parameters the same way
in dwarf2out.c.
Unfortunately, gdb prints 0 instead of 24 in the second case.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42801

Reply via email to