c++/883: int. comp. err. #122, while parsing try,catch()
georg.ritter@uibk.ac.at
georg.ritter@uibk.ac.at
Sat Nov 25 02:46:00 GMT 2000
>Number: 883
>Category: c++
>Synopsis: int. comp. err. #122, while parsing try,catch()
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sat Nov 25 02:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Georg Ritter
>Release: GCC Version contained in RH70 distri.
>Organization:
>Environment:
linux RH70
>Description:
when called with gcc test.cc -otest -lstdc++ -g
I get
test.cc: In function `int main ()':
test.cc:41: parse error before `)'
test.cc:45: Internal error #122.
test.cc:45: Internal compiler error in finish_function, at
../gcc/cp/decl.c:14422
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
class myExp { public: Exp() { }};
main() {
try { }
catch (mExp) // <<<<<<<==== TYPO mExp instead of myExp
{ }
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list