https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010
--- Comment #14 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to qingzhe huang from comment #13) > (In reply to Patrick Palka from comment #12) > > (In reply to qingzhe huang from comment #11) > > > The testcase g++.dg/cpp2a/lambda-uneval11.C still suffers a segment fault > > > if > > > run by compiler cc1plus with latest code. > > > > Hmm, I can't reproduce that on latest trunk. Is your working tree clean? > > I tested in both 10.2.x and 11.2.x and even latest 12.x with yesterday pull. > It won't show anything when compiling with driver, i.e. g++, but if you run > "cc1plus", it will crash. For example, > ${GCC_INSTALL}/libexec/gcc/x86_64-unknown-linux-gnu/11.2.0/cc1plus > -std=c++20 ./lambda-uneval11.C > > Thank you Ah yeah, I can reproduce the crash when invoking cc1plus directly and also when passing -Q to the driver. Might be better to open a separate PR for this as it seems to be a latent bug.