Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

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
Comment by Doug Newgard (Scimmia) - Wednesday, 24 January 2018, 00:17 GMT
Logs?
Comment by Fabio (fabioca) - Wednesday, 24 January 2018, 00:51 GMT
Log:

[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.
Comment by Bartłomiej Piotrowski (Barthalion) - Saturday, 27 January 2018, 11:30 GMT
It doesn't look like packaging problem so sounds better to bring it upstream.
Comment by Fabio (fabioca) - Sunday, 28 January 2018, 02:26 GMT

Loading...