public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* template argument nested type bug
@ 1997-10-08 14:47 Guido Vetere
  0 siblings, 0 replies; 2+ messages in thread
From: Guido Vetere @ 1997-10-08 14:47 UTC (permalink / raw)
  To: gnu-win32

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 T>
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<T1>::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".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* template argument nested type bug
@ 1997-10-08 14:47 Guido Vetere
  0 siblings, 0 replies; 2+ messages in thread
From: Guido Vetere @ 1997-10-08 14:47 UTC (permalink / raw)
  To: gnu-win32

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 T>
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<T1>::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 @ CONS. CORINTO
 Via N.Tridente 42, BARI, Italy
 tel +39 80 5498341
 fax +39 80 5498333
 cell 0347 2658120
 email 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".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-10-08 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-08 14:47 template argument nested type bug Guido Vetere
  -- strict thread matches above, loose matches on Subject: below --
1997-10-08 14:47 Guido Vetere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).