Commit e77de295 by Giovanni Bajo

re PR c++/12573 (ICE (segfault) with Boost.Python)

	PR c++/12573
	* g++.dg/template/dependent-expr3.C: New test.

From-SVN: r74173
parent 27408a3c
2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12573
* g++.dg/template/dependent-expr3.C: New test.
2003-12-01 James Lemke <jim@wasabisystems.com> 2003-12-01 James Lemke <jim@wasabisystems.com>
* gcc.dg/arm-g2.c: New test. * gcc.dg/arm-g2.c: New test.
......
// { dg-do compile }
// Origin: jbrandmeyer at users dot sourceforge dot net
// PR c++/12573: COMPONENT_REFs must be inspected for dependness.
template <bool> struct S;
template <typename K> struct Y : K {
int x;
};
template <class T> struct Z {
S< (bool)(&static_cast<Y<T> *>(0)->x == 0) >
s;
};
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