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

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

From-SVN: r74173
This commit is contained in:
Giovanni Bajo 2003-12-02 12:10:32 +00:00
parent 27408a3c02
commit e77de2953d
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* gcc.dg/arm-g2.c: New test.

View File

@ -0,0 +1,14 @@
// { 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;
};