This is the mail archive of the gcc-prs@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]

c++/7996: Parse error in throw statement with parenthesis


>Number:         7996
>Category:       c++
>Synopsis:       Parse error in throw statement with parenthesis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 21 11:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Woletz
>Release:        2.95.2
>Organization:
>Environment:
linux
>Description:
the following small program generates
the following error (in the throw statement):
"parse error before `;"

here comes the program:


#include <exception>

int main (void)
{
   throw (std::exception());

   return (0);
}


The same program without the outer
parenthesis in the throw statement
compiles without errors.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]