Topic: ?Is 6.6.4/1 unreasonable ? (Was: Re: is 15


Author: Valentin.Bonnard@free.fr (Valentin Bonnard)
Date: Wed, 13 Dec 2000 16:22:07 GMT
Raw View
Gene Bushuyev  wrote:

> 15.1/8 defines  throw-expression without operand as calling terminate() if
> no exception is presently being handled. That seems to be counter intuitive.
(...)
> I think simple logic requires throw to have no action in this case. If I
> wanted to have terminate I would have called terminate() - not throw.

6.6.4/1 implies that a goto statement is ill-formed if the
identifier is not a label declared in the current function.

I think simple logic requires goto to have no action in this
case. If I wanted to stop compilation I would write int long;
or #error (if I wanted to stop preprocessing).

Can anybody elucidate this case for me   ?

--

Valentin Bonnard

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]