Commit ee85b983 by Andrew Pinski Committed by Andrew Pinski

re PR c++/28766 (compound literal expression vs templates)

2009-04-16  Andrew Pinski  <pinskia@gmail.com>

        PR C++/28766
        * g++.dg/ext/complit11.C: New testcase.

From-SVN: r146203
parent efc0b2bd
2009-04-16 Andrew Pinski <pinskia@gmail.com>
PR C++/28766
* g++.dg/ext/complit11.C: New testcase.
2009-04-15 Le-Chun Wu <lcwu@google.com>
PR c++/39551
......
// { dg-do compile }
struct A { int i; };
template<int t>
void foo()
{
((struct A) { 0 }).i += 1;
}
void g(void)
{
foo<0>();
}
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