[PATCH] Fix rest of PR C++/23426 too large array gives bogus error message
Andrew Pinski
pinskia@physics.uc.edu
Fri Oct 28 04:17:00 GMT 2005
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixPR23426.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051028/7abd05df/attachment.txt>
More information about the Gcc-patches
mailing list