From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido Vetere To: gnu-win32@cygnus.com Subject: template argument nested type bug Date: Wed, 08 Oct 1997 14:47:00 -0000 Message-id: <343BA136.87A@corinto.interbusiness.it> X-SW-Source: 1997-10/msg00183.html Hi, I'm trying to compile a project previously build with MS Visual C++ 4.0 and IBM C-Set++ (AIX) with gnu-win32 (NT 4.0, b18). My code is full of expressions like this: template class C { public: typedef T temp_class; typedef temp_class::type1 type1; // line N }; which cause (gnu-win32) errors like this: (line N): syntax error before ; even if the context defines the appropriate nested type in the template argument: class T1 { public: typedef int type1; }; int main () { C::type1 t = 10; } A friend told me that the example above compiles with gnu for Os2 and Linux, so I argue that the syntax error is due to a win32 compiler bug. Any hint ? __________________________ Guido Vetere CONSORZIO CORINTO via Tridente 42, 70100 Bari +39 80 5498341 (tel) +39 80 5498333 (fax) gvetere@selfin.it gvetere@corinto.interbusiness.it __________________________ - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".