[Bug d/91561] [Regression] Internal Compiler Error: type ‘ubyte[]’ can not be mapped to C++
ibuclaw at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 16 14:19:45 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91561
ibuclaw at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gcc dot gnu.org
--- Comment #2 from ibuclaw at gcc dot gnu.org ---
The old behaviour silently accepting was a deviation of the mainline dmd
front-end. D arrays are not compatible with C++, so there is no point in
pretending they can be.
As of writing, upstream dmd still reports the error as an ICE, despite having
been a couple years now that I've tried to downgrade the severity from ICE to
general error.
The consensus when I last checked was that it should be caught earlier in
semantic, not in the mangling stage. However no one has written a patch to do
this yet.
More information about the Gcc-bugs
mailing list