Commit 663cea5d by Giovanni Bajo

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

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

From-SVN: r75547
parent 3d5ddced
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.
......
// { 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;
};
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