Commit f1253e7e by Steve Ellcey Committed by Steve Ellcey

re PR c++/38357 (ICE cc1plus (Segmentation fault))

	PR c++/38357
	* g++.dg/template/crash87.C: New test.

From-SVN: r143403
parent 5fa0e853
2008-01-15 Steve Ellcey <sje@cup.hp.com>
PR c++/38357
* g++.dg/template/crash87.C: New test.
2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37843
......
// Origin: PR c++/38357
// { dg-do compile }
class BUG
{
public:
bool name() { return true; }
};
template <bool T>
struct BUG1_5
{
};
template <bool name>
class BUG2 : BUG
{
public:
typedef BUG1_5<name> ptr; // { dg-error "could not convert template argument" }
};
int main()
{
BUG2<false> b;
return 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