This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22256] diagnostic shows wrong type for cast operator
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 20:56:08 -0000
- Subject: [Bug c++/22256] diagnostic shows wrong type for cast operator
- References: <20050630163052.22256.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-06-30 20:56 -------
Subject: Re: diagnostic shows wrong type
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Confirmed. Also happens with 3.3.x.
I think this happens because when the C++ front-end finds that a
declaration is erroneous, it sets its TREE_TYPE to "int", presumably
thinking that a default type should be "int".
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22256