https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87957

--- Comment #26 from Jan Hubicka <hubicka at ucw dot cz> ---
> Run the gnat.dg testsuite and copy-and-paste the command line from the log 
> file
> without the -q option in the middle.  You'll get:
> 
> /home/eric/build/gcc/native/gcc/xgcc -c
> -I/home/eric/svn/gcc/gcc/testsuite/gnat.dg/ -B/home/eric/build/gcc/native/gcc
> --RTS=/home/eric/build/gcc/native/x86_64-suse-linux/./libada
> -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
> -fdiagnostics-color=never -gnatws -flto -lm -I-
> /home/eric/svn/gcc/gcc/testsuite/gnat.dg/lto8.adb
> +===========================GNAT BUG DETECTED==============================+
> | 9.0.0 20190104 (experimental) [trunk revision 267574] (x86_64-suse-linux) 
> GCC
> error:|
> | in fld_incomplete_type_of, at tree.c:5348                                |

Aha, i did that but ignored the command line. It was long bughunting
week, sorry for that :)

I already did printf debugging and indeed we only need to decide how to
adjust type_with_linkage_p so it returns false for all Ada types.  Maybe
cleanest would be to add flag to TYPE_DECL which C++ FE will set and
other frontends won't, but perhaps there is easier way around. Jason?

Honza

Reply via email to