This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11282] New: [3.3 regression] Infinite memory usage after syntax error
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2003 12:06:41 -0000
- Subject: [Bug c++/11282] New: [3.3 regression] Infinite memory usage after syntax error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11282
Summary: [3.3 regression] Infinite memory usage after syntax
error
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs@gcc.gnu.org
Hi,
this was reported by Lukas Ruf (ruf at rawip org) on gcc-bugs 29 May 2003,
however I can't find it in the database (or even in the list archive...?).
Test case:
struct parameter_struct_t {
char short_option;
char *long_option;
};
parameter_struct_t *parameters[] = {
{
'f';
"from";
};
};
% g++ --version
g++ (GCC) 3.3.1 20030619 (prerelease)
% g++ -c away.cc
away.cc:8: error: syntax error before `;' token
[killed because out of memory]
mainline says:
away.cc:8: error: expected `}'
away.cc:8: error: expected `}'
away.cc:8: error: brace-enclosed initializer used to initialize `
parameter_struct_t*'
away.cc:9: error: expected unqualified-id
away.cc:9: error: expected `,' or `;'
away.cc:10: error: expected declaration