-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++11clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 37559 |
| Version | trunk |
| OS | Linux |
| CC | @DougGregor,@zygoloid |
Extended Description
There seem to be some problems about the point where noexcept specifiers are evaluated. I.e., this code does not compile:
void some_function() noexcept;
class V1 {
// does not compile
void f() noexcept(noexcept(some_function()));
decltype(&V1::f) f2;
};
class V2 {
// does not compile
void f() noexcept(true);
decltype(&V2::f) f2;
};
class V3 {
// compiles
void f() noexcept;
decltype(&V3::f) f2;
};
due to
decltype(&V1::f) f2;
^
decltype(&V2::f) f2;
^
2 errors generated.
Compiler returned: 1
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++11clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"