This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


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

Re: #pragma GCC java_exceptions - now with documentation!


On Fri, Apr 27, 2001 at 05:38:54PM -0700, Zack Weinberg wrote:
> I'd like to have an example, but I'm not good enough
> with C++ to know when this pragma is necessary.

Whenever a unit of translation only uses EH for destructors.

  struct S { ~S(); };
  extern void bar();
  void foo()
  {
    S s;
    bar();
  }


r~


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