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

           Summary: [C++0x] noexcept ignored on function pointer
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ja...@gcc.gnu.org
                CC: ja...@gcc.gnu.org
        Depends on: 12255


This testcase should give an error on the initialization and no error on the
static_assert.

// { dg-options -std=c++0x }                                                    

void f();
void (*p)() noexcept = f; // { dg-error "" }                                    

#define SA(X) static_assert((X),#X)

SA(noexcept(p()));

The underlying issue is PR 12255, but while this behavior was not observable in
C++98, it is observable in C++0x.

Reply via email to