This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 88620 - parser fail on try block as function body
Summary: parser fail on try block as function body
Status: RESOLVED DUPLICATE of bug 142674
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 16:47 UTC by Vladimir Voskresensky
Modified: 2008-08-04 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-11-03 16:47:30 UTC
Code example:
----------------------------------------
#include <stdlib.h>

int
main(int argc, char** argv) try {
   throw "main";
} catch(const char* msg) {
       return (EXIT_SUCCESS);
}
----------------------------------------
Trace model:
main.cc:14:29: unexpected token: try
main.cc:16:1: expecting EOF, found '}'
main.cc:14:29: unexpected token: try
main.cc:16:1: expecting EOF, found '}'

AST DUMP is empty.
Comment 1 Vladimir Kvashin 2007-02-07 15:23:10 UTC
Downgraded since this is extremely rare use case
Comment 2 Alexey Vladykin 2008-08-04 09:51:50 UTC

*** This issue has been marked as a duplicate of 142674 ***