Commit e5ab6728 by Paolo Carlini

re PR c++/66210 (Variable template specialization does not work with alias-declarations)

2015-05-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/66210
	* g++.dg/cpp1y/var-templ28.C: New.

From-SVN: r223506
parent f70d27e0
2015-05-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66210
* g++.dg/cpp1y/var-templ28.C: New.
2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
PR target/66232
......@@ -10,7 +15,7 @@
2015-05-21 Nathan Sidwell <nathan@acm.org>
* g++.dg/cpp1y/pr60943.C: New.
2015-05-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/66233
......@@ -40,7 +45,7 @@
* gcc.target/hppa/shadd-4.c: New test.
2015-05-08 Michael Matz <matz@suse.de>
2015-05-21 Michael Matz <matz@suse.de>
* gcc.dg/vect/vect-strided-store.c: New test.
* gfortran.dg/vect/fast-math-pr37021.f90: Adjust.
......
// PR c++/66210
// { dg-do compile { target c++14 } }
using resultType = const char*;
template<typename T>
T pi = (T)(3.1415926535897932385);
template<>
resultType pi<resultType> = "pi";
void foo()
{
(void)pi<resultType>;
}
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