This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix c++/44473, mangling for decimal classes


This fix to the C++ compiler fixes bug PR c++/44473. I had originally
assumed that the failure had something to do with templates and didn't
get far debugging it on my EeePC. I recently acquired a computer with
a screen large enough for development work and discovered that it was
just a simple bug that I had introduced in the mangler.

The decimalxx classes in std::decimal are mangled the same as decimal
floating point scalars from C, and the special-casing in the mangler
prevented CV qualifiers from being part of the mangled name. One of
the new tests is minimized from the submitter's testcase, one just
checks that the const qualifier appears, and the others, based on
existing tests for other types, check other basic mangling that wasn't
checked before for the decimal classses.

Tested with c,c++ bootstrap and testsuite on i686-pc-linux.gnu.
OK for trunk and 4.5?

Attachment: 44473-patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]