Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#57203 - [gcc] g++ crash
Attached to Project:
Arch Linux
Opened by Fabio (fabioca) - Tuesday, 23 January 2018, 15:42 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Tuesday, 13 February 2018, 08:07 GMT
Opened by Fabio (fabioca) - Tuesday, 23 January 2018, 15:42 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Tuesday, 13 February 2018, 08:07 GMT
|
DetailsDescription:
The command: g++ -c prova.cpp -o prova.o causes a g++ crash with the following input file: // prova.cpp enum aa {a1}; enum bb {b1}; enum cc {ca1, cb1}; template <cc n, typename T> T foo(); template <> auto foo<ca1>() { return a1; } template <> auto foo<cb1>() { return b1; } |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Tuesday, 13 February 2018, 08:07 GMT
Reason for closing: Upstream
Tuesday, 13 February 2018, 08:07 GMT
Reason for closing: Upstream
[root@archimede dll]# g++ -c prova.cpp -o prova.o
prova.cpp:9:42: internal compiler error: Segmentation fault
template <> auto foo<ca1>() { return a1; }
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84080