From c1c009833d16ef31784ab6df078722d178758e43 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 5 Jun 2016 15:08:22 +0000 Subject: [PATCH] re PR c++/49377 (Template specialization attributes cause type mismatches when used) 2016-06-05 Paolo Carlini PR c++/49377 * g++.dg/template/pr49377.C: New. From-SVN: r237098 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/pr49377.C | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/pr49377.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c272ade5809..f327b8243b5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-06-05 Paolo Carlini + + PR c++/49377 + * g++.dg/template/pr49377.C: New. + 2016-06-04 Jakub Jelinek PR tree-optimization/71405 diff --git a/gcc/testsuite/g++.dg/template/pr49377.C b/gcc/testsuite/g++.dg/template/pr49377.C new file mode 100644 index 00000000000..cb4287ad1ac --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr49377.C @@ -0,0 +1,16 @@ +// PR c++/49377 + +template class v; + +template class v { + v() { }; +} __attribute__((__may_alias__)); + +typedef v float2; + +class a { + void f(float2 &point); + float2 d; +}; + +void a::f(float2 &point) { } -- 2.30.2