[cxx-abi-dev] Mangling for noexcept operator

Mike Herrick mjh at edg.com
Tue Sep 4 13:39:59 UTC 2012


We don't seem to have a mangling for the new noexcept operator.  

How's this:

  <operator-name> ::= nx		# noexcept (an expression)

For example:

  void f(int) noexcept;
  void f(float) throw (int);
  template <class T> auto g(T p) -> decltype((int (*)[noexcept(f(p))])0);
  int main() {
    g(1);
  }

Which would provide a mangled name of: _Z1gIiEDTcvPAnxcl1ffp_E_iLi0EET_ for g.

Mike Herrick
Edison Design Group


More information about the cxx-abi-dev mailing list