mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
Revert "Fix ICE with -g and -std=c23 related to incomplete types [PR114361]"
This reverts commit 871bb5ad2d
because it
breaks LTO and needs a bit more work. See PR 114574.
This commit is contained in:
parent
9627cbbadb
commit
8057f9aa1f
@ -9722,7 +9722,6 @@ finish_struct (location_t loc, tree t, tree fieldlist, tree attributes,
|
||||
C_TYPE_VARIABLE_SIZE (x) = C_TYPE_VARIABLE_SIZE (t);
|
||||
C_TYPE_VARIABLY_MODIFIED (x) = C_TYPE_VARIABLY_MODIFIED (t);
|
||||
C_TYPE_INCOMPLETE_VARS (x) = NULL_TREE;
|
||||
TYPE_CANONICAL (x) = TYPE_CANONICAL (t);
|
||||
}
|
||||
|
||||
/* Update type location to the one of the definition, instead of e.g.
|
||||
|
@ -1,14 +0,0 @@
|
||||
/* { dg-do compile }
|
||||
* { dg-options "-std=c23 -g" } */
|
||||
|
||||
struct a;
|
||||
typedef struct a b;
|
||||
|
||||
void g() {
|
||||
struct a { b* x; };
|
||||
}
|
||||
|
||||
struct a { b* x; };
|
||||
|
||||
|
||||
|
@ -1,13 +0,0 @@
|
||||
/* { dg-do compile }
|
||||
* { dg-options "-std=c23 -g" } */
|
||||
|
||||
struct a;
|
||||
typedef struct a b;
|
||||
|
||||
void f() {
|
||||
extern struct a { b* x; } t;
|
||||
}
|
||||
|
||||
extern struct a { b* x; } t;
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
/* PR c/114361 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=gnu23 -g" } */
|
||||
|
||||
void f()
|
||||
{
|
||||
typedef struct foo bar;
|
||||
typedef __typeof( ({ (struct foo { bar *x; }){ }; }) ) wuz;
|
||||
struct foo { wuz *x; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user