[pushed] c++: add fixed test [PR101740]
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Test passed
|
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap |
success
|
Build passed
|
Commit Message
Tested x86_64-pc-linux-gnu, applying to trunk.
-- >8 --
Fixed by r12-3643.
PR c++/101740
gcc/testsuite/ChangeLog:
* g++.dg/template/dtor12.C: New test.
---
gcc/testsuite/g++.dg/template/dtor12.C | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 gcc/testsuite/g++.dg/template/dtor12.C
base-commit: cfdb961588ba318a78e995d2e2cde43130acd993
new file mode 100644
@@ -0,0 +1,19 @@
+// PR c++/101740
+
+template<template<class> class T, class U>
+struct Test{
+ void fun(){
+ T<U> d;
+ d.~GG<int>(); // #1
+ }
+};
+
+template<class >
+struct GG {};
+
+int
+main ()
+{
+ Test<GG, int> b;
+ b.fun();
+}