delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
X-Authentication-Warning: | hp2.xraylith.wisc.edu: khan owned process doing -bs |
Date: | Tue, 18 Jan 2000 01:15:08 -0600 (CST) |
From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
To: | "Evgenii B. Rudnyi" <rudnyi AT comp DOT chem DOT msu DOT su> |
cc: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: typeid |
In-Reply-To: | <200001151138.OAA07700@comp.chem.msu.su> |
Message-ID: | <Pine.HPP.3.96.1000118011315.831D-100000@hp2.xraylith.wisc.edu> |
MIME-Version: | 1.0 |
On Sat, 15 Jan 2000, Evgenii B. Rudnyi wrote: > #include <typeinfo> > #include <iostream> > > class test {}; > > class long_test {}; > > int main() > { > test a; > long_test b; > cout << typeid(a).name() << endl; > cout << typeid(b).name() << endl; > return 0; > } > > under the original gcc in the Cygwin B20.1 and under gcc 2.95.2 > (Mumit Khan) is as follows > > 4test > 9long_test > > where there is a number (number of bytes in the name, as far as I > understand) before a class name. > > Is it a feature or a bug? Feature. See the C++ standard for more information on what compilers are required to produce (hint: unique names, but not necessarily what you would like to see). Please follow up in a C++ specific forum if you have more questions. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |