This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/396: [2003-01-01] const int null = 0;
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de, mlepage at molecularmining dot com, nobody at gcc dot gnu dot org
- Date: 5 May 2003 20:23:00 -0000
- Subject: Re: c++/396: [2003-01-01] const int null = 0;
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de, mlepage at molecularmining dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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