You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clang supports _Generic as an extension in C++ mode, but the following C++ code doesn't parse when it should:
structS {
int i;
};
voidfunc(structS s) {
(void)_Generic(s, structS : 1); // error: 'S' cannot be defined in a type specifier \ error: expected class name \ error: expected '{' after base class list
}
This use is not defining a new type specifier, it's attempting to use an elaborated type specifier for referencing the type.
The text was updated successfully, but these errors were encountered:
Clang supports
_Generic
as an extension in C++ mode, but the following C++ code doesn't parse when it should:This use is not defining a new type specifier, it's attempting to use an elaborated type specifier for referencing the type.
The text was updated successfully, but these errors were encountered: