Commit 713106ad by Paolo Carlini Committed by Paolo Carlini

re PR c++/51199 ([C++11][DR 547] gcc forms impossible types derived from…

re PR c++/51199 ([C++11][DR 547] gcc forms impossible types derived from function types with cv-qualifier-seq)

2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51199
	* g++.dg/template/pr51199.C: New.

From-SVN: r210321
parent 481d8d70
2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51199
* g++.dg/template/pr51199.C: New.
2014-05-11 Hans-Peter Nilsson <hp@bitrange.com>
* gcc.c-torture/execute/20101011-1.c [__MMIX__] (DO_TEST): Define as 0.
......
// PR c++/51199
typedef void FC() const;
template<class T>
struct add_ref {
typedef T& type; // { dg-error "forming reference" }
};
typedef add_ref<FC>::type ref_type;
template<class T>
struct add_ptr {
typedef T* type; // { dg-error "forming pointer" }
};
typedef add_ptr<FC>::type ptr_type;
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