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

Re: g++ parser problem


Robert Schweikert <Robert.Schweikert@abaqus.com> writes:

| Trying to compile the little code snippet below causes an error as shown
| with g++. It works with other compilers.

Pedantically speaking, to make your program well-formed, don't forget
to include <stdexcept>.

The real problem is a parser problem that is corrected in the new
parser found in GCC-3.4.x (upcoming).  You can reproduce it with the
simplified 

   struct S { };

   int main() { throw(S()); }

-- Gaby


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