This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46862] ICE on std::decimal::decimal32 without any fields
- From: "janis at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Dec 2010 18:42:38 +0000
- Subject: [Bug c++/46862] ICE on std::decimal::decimal32 without any fields
- Auto-submitted: auto-generated
- References: <bug-46862-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46862
--- Comment #2 from Janis Johnson <janis at gcc dot gnu.org> 2010-12-09 18:42:13 UTC ---
TYPE_TRANSPARENT_AGGR is set in begin_class_definition in semantics.c for the
classes std::decimal::decimal{32|64|128}. It assumes that they are defined as
in the GNU Standard C++ Library. That code should probably ICE with a good
message if there is no first field or if the first field doesn't have an
expected type. If that sounds appropriate I can write a patch.
The C++ compiler would have to know details of other implementations of the
decimal classes in order to pass them as the underlying scalar types.