This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80061] error on constexpr function with an unevaluated throw


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

Matthijs van Duin <matthijsvanduin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matthijsvanduin at gmail dot com

--- Comment #1 from Matthijs van Duin <matthijsvanduin at gmail dot com> ---
Simpler test case:

void foo( bool ok ) {
    if( ok )
        return;
    throw;
}

fails to compile with g++ 6.3.0 and g++ 7.1.0

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]