re PR c++/89873 (internal compiler error: unexpected expression of kind implicit_conv_expr)
PR c++/89873 * g++.dg/cpp1y/noexcept1.C: New test. From-SVN: r272507
This commit is contained in:
parent
877ef62879
commit
73b7f10a55
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2019-06-20 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR c++/89873
|
||||
* g++.dg/cpp1y/noexcept1.C: New test.
|
||||
|
||||
2019-06-20 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/90937
|
||||
|
|
13
gcc/testsuite/g++.dg/cpp1y/noexcept1.C
Normal file
13
gcc/testsuite/g++.dg/cpp1y/noexcept1.C
Normal file
|
@ -0,0 +1,13 @@
|
|||
// PR c++/89873
|
||||
// { dg-do compile { target c++14 } }
|
||||
|
||||
template <int> bool b;
|
||||
|
||||
template <typename>
|
||||
struct C {
|
||||
template <typename> friend int foo() noexcept(b<1>); // { dg-error "not usable in a constant expression|different exception specifier" }
|
||||
};
|
||||
|
||||
template <typename> int foo() noexcept(b<1>);
|
||||
|
||||
auto a = C<int>();
|
Loading…
Add table
Reference in a new issue