This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The problem here is that we did not add decls which have their types of error_mark_node to the current scope so we gave an error message that array did not exist. This fixes the problem but instead of returning right away from start_decl after getting a decl with an error_mark_node as its type, just go through the normal processing. OK? Bootstrapped and tested on x86_64-pc-linux-gnu with no regressions. Thanks, Andrew Pinski ChangeLog: * decl.c (start_decl): Check that the decl is an error_mark_node before getting the type. Remove the check for the decl's type being an error_mark_node. testsuite/ChangeLog: * g++.dg/other/large-size-array.C: New test.
Attachment:
fixPR23426.diff.txt
Description: ASCII C program text
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |