Commit 58ebb59b by Paolo Carlini Committed by Paolo Carlini

re PR c++/66690 (error: use of ‘X’ before deduction of ‘auto’)

2017-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/66690
	* g++.dg/cpp1y/pr66690.C: New.

From-SVN: r253502
parent df780484
2017-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66690
* g++.dg/cpp1y/pr66690.C: New.
2017-10-06 Nathan Sidwell <nathan@acm.org>
PR c++/82424
......
// PR c++/66690
// { dg-do compile { target c++14 } }
template<class T> auto foo(T t) {return 3;}
class B {B();}; // { dg-message "declared private" }
template<class T> class D:public B
{
D() // { dg-message "declared private" }
{ // { dg-error "is private" }
T x00;
foo(x00);
}
};
D<int> d; // { dg-error "is private" }
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