[Bug c++/94117] deferred noexcept specifications and friend fns

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 10 14:52:31 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94117

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Yes, it was a conscious decision not to defer parsing of noexcept-spec of
friend functions.  The standard currently doesn't say we shouldn't defer, but
no compiler implements it.  The problem was that friend declarations can be
redeclared and it would be tricky to see if their noexcept-specs match.


More information about the Gcc-bugs mailing list