Commit dc20515e by Marek Polacek Committed by Marek Polacek

re PR c++/89356 (sorry, unimplemented: mangling implicit_conv_expr in nodejs8…

re PR c++/89356 (sorry, unimplemented: mangling implicit_conv_expr in nodejs8 package since r268321)

	PR c++/89356
	* g++.dg/abi/mangle68.C: New test.
	* g++.dg/cpp0x/decltype69.C: New test.

From-SVN: r268972
parent 35d7b528
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
PR c++/89315 PR c++/89315
* g++.dg/cpp0x/initlist114.C: New test. * g++.dg/cpp0x/initlist114.C: New test.
PR c++/89356
* g++.dg/abi/mangle68.C: New test.
* g++.dg/cpp0x/decltype69.C: New test.
2019-02-16 David Malcolm <dmalcolm@redhat.com> 2019-02-16 David Malcolm <dmalcolm@redhat.com>
PR c++/88680 PR c++/88680
......
// PR c++/89356
// { dg-do compile { target c++11 } }
template<typename T>
auto fn () -> decltype(unsigned{2u} + (T)3) { return 42; }
// { dg-final { scan-assembler "_Z2fnIiEDTpltljLj2EEcvT_Li3EEv" } }
template auto fn<int>() -> decltype(unsigned{2u} + (int)3);
// PR c++/89356
// { dg-do compile { target c++11 } }
typedef unsigned a;
template <typename> struct h {};
template <int, class b> auto c(b f) -> h<decltype(f(a{0}))>;
typedef char byte;
enum d : byte;
d g(byte);
h<d> e = c<6>(g);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment