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

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

From-SVN: r75547
This commit is contained in:
Giovanni Bajo 2004-01-08 11:57:53 +00:00
parent 3d5ddced56
commit 663cea5dc0
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-01-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12573
* g++.dg/template/dependent-expr4.C: New test.
2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
* gcc.dg/altivec-11.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 {
int x;
};
template <class T> struct Z {
S< (bool)(__offsetof__(&static_cast<Y<T>*>(0)->x) == 0) >
s;
};