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]
Other format: [Raw text]

Re: c++/396: [2003-01-01] const int null = 0;


Synopsis: [2003-01-01] const int null = 0;

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Mon May  5 20:23:00 2003
State-Changed-Why:
    This is finally fixed in 3.2.3 (some time after 3.2), 3.3
    and present mainline (3.4):
    
    g/x> /home/bangerth/bin/gcc-3.2/bin/gcc -W -Wall -c x.cc
    x.cc: In function `int main()':
    x.cc:14: invalid conversion from `int' to `int*'
    x.cc:14:   initializing argument 1 of `static void Foo::f(int*)'
    g/x>
    g/x>
    g/x> /home/bangerth/bin/gcc-3.2.3-pre/bin/gcc -W -Wall -c x.cc
    x.cc: In function `int main()':
    x.cc:11: invalid conversion from `int' to `int*'
    x.cc:14: invalid conversion from `int' to `int*'
    x.cc:14:   initializing argument 1 of `static void Foo::f(int*)'
    g/x>
    g/x>
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -W -Wall -c x.cc
    x.cc: In function `int main()':
    x.cc:11: error: invalid conversion from `int' to `int*'
    x.cc:14: error: invalid conversion from `int' to `int*'
    x.cc:14: error:   initializing argument 1 of `static void Foo::f(int*)'
    g/x>
    g/x>
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -W -Wall -c x.cc
    x.cc: In function `int main()':
    x.cc:11: error: invalid conversion from `int' to `int*'
    x.cc:11: error:   initializing argument 1 of `void f(int*)'
    x.cc:14: error: invalid conversion from `int' to `int*'
    x.cc:14: error:   initializing argument 1 of `static void Foo::f(int*)'

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=396


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