This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78301] noexcept() operator rejects sibling method call without object
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2017 12:03:17 +0000
- Subject: [Bug c++/78301] noexcept() operator rejects sibling method call without object
- Auto-submitted: auto-generated
- References: <bug-78301-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78301
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And std::declval<a*>()->inner() doesn't work either:
ne.cc:5:59: error: invalid use of incomplete type ‘struct a’
void outer() const noexcept( noexcept( std::declval<a*>()->inner() ) ) {
^~
ne.cc:3:8: note: definition of ‘struct a’ is not complete until the closing
brace
struct a {
^
Which is PR 66256.