-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second party
Description
Compiler Explorer: https://godbolt.org/z/TG4hMMPv3
template<int... x>
int y = x...[0];
int main() {
y<0>;
}
<source>:2:5: error: cannot initialize a variable of type 'int' with an lvalue of type '<dependent type>'
2 | int y = x...[0];
| ^ ~~~~~~~
<source>:5:2: warning: expression result unused [-Wunused-value]
5 | y<0>;
| ^~~~
1 warning and 1 error generated.
Compiler returned: 1
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second party