public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11813] New: Make GCC not to assume that C functions can't throw.
@ 2003-08-05 22:53 v dot haisman at sh dot cvut dot cz
  2003-08-05 22:54 ` [Bug c++/11813] " v dot haisman at sh dot cvut dot cz
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2003-08-05 22:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11813

           Summary: Make GCC not to assume that C functions can't throw.
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: *-*-*
  GCC host triplet: *-*-*
GCC target triplet: *-*-*

This test case shows that C++ exceptions are not caught across C function calls.
Although this can be cured by supplying -fexceptions for compilation of C files,
it is not always possible solution. For example when the program is linked with
third party's binary C library whose compilation flags can't be controled.
MSVC++ allows user to specify option /EHsc- that enables exceptions and also
stops the compiler from assuming that C functions can't throw. I think that some
users of GCC would like to have similar flag too.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-25 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05 22:53 [Bug c++/11813] New: Make GCC not to assume that C functions can't throw v dot haisman at sh dot cvut dot cz
2003-08-05 22:54 ` [Bug c++/11813] " v dot haisman at sh dot cvut dot cz
2003-08-05 22:55 ` v dot haisman at sh dot cvut dot cz
2003-08-05 22:55 ` v dot haisman at sh dot cvut dot cz
2003-08-05 22:56 ` v dot haisman at sh dot cvut dot cz
2003-08-05 23:16 ` [Bug other/11813] " pinskia at physics dot uc dot edu
2003-08-05 23:42 ` bangerth at dealii dot org
2003-08-06  7:29 ` gdr at integrable-solutions dot net
2003-08-06  7:33 ` gdr at integrable-solutions dot net
2005-01-25 16:13 ` [Bug c/11813] make -fexceptions default for c and objective-c pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).