Commit a5b38cdf by H.J. Lu Committed by H.J. Lu

re PR c++/4926 (C++ ABI needs clarification on mangling of complex expressions)

2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/4926
	* g++.dg/template/pr4926-1.C: New.

From-SVN: r145423
parent 839a3b8a
2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
PR c++/4926
* g++.dg/template/pr4926-1.C: New.
2009-04-01 Xinliang David Li <davidxl@google.com>
* gcc.target/i386/all_one_m128i.c: New test.
......
// PR c++/4926
// { dg-do compile }
template <unsigned> struct X { typedef int Type; };
template <typename T> struct Y { char array[1]; };
template<typename T> Y<T> P(T); // acts as "Y<typeof(T)>"
struct F { int operator()() const; };
template <typename T>
typename X<sizeof(P( T()() ).array)>::Type foo();
void
bar ()
{
foo<F>();
}
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