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]

Re: g++ && rtti <typeinfo> problems



>>>>> "M" == M Cvjetko <cvjetko@rt.e-technik.uni-erlangen.de> writes:

    M> Thanx Mark!

    M>  I admit it was a typo. A student came to me with this problem
    M> so I typed it on the fly and got this result, same as those he
    M> got, except this parse error before ':'. OK I have overseen it,
    M> but problem with typeinfo is still there.

    M>  By the way can You compile this example??

It works fine with current development snapshots.  It may well be
broken in 1.0.2.

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

    M> */

    M> # include <typeinfo>

    M> # include <iostream.h>

    M> int main() { int i;

    M>  typeid(i);

    M>  cout << typeid(i).name() << endl;

    M>  return 0; }


    M> /*

    M> Linux : egcs-1.0.2 snapshot 02.03(March).1998.  with typeinfo
    M> incuded


-- 
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]