[macstl-dev] XLC++ compiling macstl

Glen Low glen.low at pixelglow.com
Mon Feb 28 21:02:25 WST 2005

  • Previous message: [macstl-dev] Re: [Fwd: Multiplication?]
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]


Hi Dwayne

Just wanted to follow up on my last email to you some time ago about 
XLC++ 6.0 (September 2004 version) not compiling macstl properly. 
(There's now partial support in 0.2.1 but it's not optimized for SIMD 
because of this compiler(?) bug.)

The minimal snippet of code which illustrates the problem is:

#include <iostream>

template <typename T> struct enable_if
	{
		typedef void type;
	};
	
template <typename T, typename Enable> struct test_type;

template <class T> struct test_type <T, typename enable_if <T>::type>
	{
		static void call ()
			{
			}
	};
	
int main ()
{
	test_type <int, void>::call (); // line in question
}

The above yields a

error: 1540-0062 (S) The incomplete class "test_type<int,void>" must 
not be used as a qualifier.

However this compiles successfully on gcc 3.3 and online Comeau.


Cheers, Glen Low


---
pixelglow software | simply brilliant stuff
www.pixelglow.com




  • Previous message: [macstl-dev] Re: [Fwd: Multiplication?]
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the macstl-dev mailing list