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#66347 - [gcc] auto in requires clause causes internal compiler error

Attached to Project: Arch Linux
Opened by Virginia Senioria (91khr) - Wednesday, 22 April 2020, 07:42 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Monday, 11 May 2020, 07:11 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

Steps to reproduce:

1. Create a source file like this:
[code]
template<class T>
concept C = requires(auto a) {};
[/code]

2. Compile it using g++ -fconcepts -std=c++2a

3. Error message:
[code]
test.cpp:1:28: internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:41307
1 | concept CC = requires(auto a) {};
| ^
[/code]
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Monday, 11 May 2020, 07:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  10.1.0-1
Comment by Virginia Senioria (91khr) - Wednesday, 22 April 2020, 07:44 GMT
Forgot to say, g++ version is 9.3.0

Loading...