This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ && rtti <typeinfo> problems



    /*
     Newsgroups: gnu.g++.bug,gnu.g++.help,gnu.g++.lib.bug
     email     : egcs-bugs@cygnus.com, bug-g++@prep.ai.mit.edu

     Hi!

     Sorry for intrusion but I have (again) some misunderstandings
     with this example:

    */

    # include <typeinfo>

    # include <iostream.h>

    int main()
    {
     int i;

     typeid(i);

     cout << typeid(i).name() << endl:

That's supposed to be a `;', not a `:'.

     return 0;
    }



-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]