We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405ca1d commit 5c0c2c0Copy full SHA for 5c0c2c0
clang/test/C/C23/n3037.c
@@ -429,4 +429,9 @@ void gh149965(void) {
429
// FIXME: this should be an error in both C17 and C23 mode.
430
struct GH149965_3 { int h; }; // c17-note {{previous definition is here}}
431
struct GH149965_3 { enum E1 h; }; // c17-error {{redefinition of 'GH149965_3'}}
432
+
433
+ // For Clang, the composite type after declaration merging is the enumeration
434
+ // type rather than an integer type.
435
+ enum E1 *eptr;
436
+ [[maybe_unused]] __typeof__(x1.h) *ptr = eptr;
437
}
0 commit comments