------- Comment #1 from rguenth at gcc dot gnu dot org  2008-04-24 08:33 -------
These defines are supposed to make libstdc++ work with -fno-exceptions, you
are not really supposed to use -fno-exceptions with a program that uses
exceptions ...

of course a diagnostic would be nice here, instead of silently generating
completely unexpected code.

Without including iostream you'd see

t.C: In function 'int main()':
t.C:4: error: exception handling disabled, use -fexceptions to enable

so a fix would be to prevent these defines from leaking out to the user
program.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |3.3.6 4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-24 08:33:07
               date|                            |


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

Reply via email to