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

[Bug objc/53943] Compiler ICE with -fobjc-direct-dispatch flag on Linux


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53943

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-07-27
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
On Darwin it does this:

$ /usr/local/bin/gcc -fobjc-direct-dispatch 53943.m -lobjc
53943.m: In function ‘main’:
53943.m:14:2: error: ‘-fobjc-exceptions’ is required to enable Objective-C
exception syntax
  @throw [Interface new];
  ^
$ /usr/local/bin/gcc -fobjc-direct-dispatch -fobjc-exceptions 53943.m -lobjc
$

I don't have Linux to test; could you try again with adding the
-fobjc-exceptions flag on your machine?

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