-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-invalidregression
Description
To quickly reproduce: https://gcc.godbolt.org/z/G79ThqzWE (assertion-trunk)
struct Tournament {
int id{0}; // remove this line and it no longer crashes
auto x = 1;
};
int main() {
Tournament s(0);
}
Compiling the above code crashes clang clang++ -x c++ -std=c++20
, crashes locally using clang-17.0 (a10019a) (requires c++20 or above), also on trunk with assertion (see godbolt link)
Note that removing int id{0};
inside the struct stops the crash.
Metadata
Metadata
Assignees
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-invalidregression