public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Guido Vetere" <gvetere@rs0.corinto.interbusiness.it>
To: <gnu-win32@cygnus.com>
Subject: template argument nested type bug
Date: Wed, 08 Oct 1997 14:47:00 -0000	[thread overview]
Message-ID: <9710081505.AA21582@rs0.corinto.interbusiness.it> (raw)

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".

             reply	other threads:[~1997-10-08 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-08 14:47 Guido Vetere [this message]
1997-10-08 14:47 Guido Vetere

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9710081505.AA21582@rs0.corinto.interbusiness.it \
    --to=gvetere@rs0.corinto.interbusiness.it \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).