https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90581
Bug ID: 90581 Summary: provide an option to adjust the maximum depth of nested #include Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- for some large complicate applications, sometimes the depth of nested #include might be very big, exceeding the current hard-coded limit 200: directives.c: if (pfile->line_table->depth >= CPP_STACK_MAX) cpp_error (pfile, CPP_DL_ERROR, "#include nested too deeply"); internal.h: #define CPP_STACK_MAX 200 This PR is to request a first class option for users to adjust this limit during compilation time in order to compile the large application successfully.