Commit 0ae1678f by Paolo Carlini Committed by Paolo Carlini

re PR c++/81246 (ICE on invalid C++ code (with a non-type template parameter…

re PR c++/81246 (ICE on invalid C++ code (with a non-type template parameter having type 'float'): Segmentation fault)

2018-09-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/81246
	* g++.dg/cpp0x/pr81246.C: New.

From-SVN: r264577
parent 29b26763
2018-09-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81246
* g++.dg/cpp0x/pr81246.C: New.
2018-09-25 H.J. Lu <hongjiu.lu@intel.com> 2018-09-25 H.J. Lu <hongjiu.lu@intel.com>
PR target/82699 PR target/82699
......
// { dg-do compile { target c++11 } }
namespace N
{
template < typename T > class A
{
template < T > friend class B; // { dg-error "not a valid type" }
};
A < float > a;
}
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