On Tue, Jan 07, 2025 at 03:45:02PM +0100, Thomas Koenig via Gcc wrote: > when an ICE occurs somewhere when building a complex software package, > it can be cumbersome for the user to obtain the preprocessed file > that we ask people to submit to us. > > Would it be reasonable to dump a preprocessed file (if any) on an ICE, > and point the user to it? The error message could then be something > like "Please submit the preprocessed file at /home/foo/bar/baz.i". > > As gcc usually does not invoke cpp directly any more (correct?) it > might be possible to dump the source code, if it is still held > in memory, or alternatively invoke the preprocessor on the > original source file. > > This has the potential of getting more reasonable bug reports > into bugzilla, I think. > > What do you think? Good/bad idea? Should I open a PR for this? > Should this kind of thing maybe be restricted to checking mode?
You mean what the -freport-bug option does? Jakub