https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101493
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=90581 Last reconfirmed| |2021-07-18 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- if (pfile->line_table->depth >= CPP_OPTION (pfile, max_include_depth)) cpp_error (pfile, CPP_DL_ERROR, "#include nested depth %u exceeds maximum of %u" " (use -fmax-include-depth=DEPTH to increase the maximum)", pfile->line_table->depth, CPP_OPTION (pfile, max_include_depth)); in libcpp/directives.c The option is new for GCC 10 (added with r10-1503) and the error message changed then. It used to just say: "#include nested too deeply" And not even say the limit. Confirmed.