This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13851] GCC 3.3.x mishandles pass by reference casted pointer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2004 02:42:13 -0000
- Subject: [Bug c++/13851] GCC 3.3.x mishandles pass by reference casted pointer
- References: <20040125023839.13851.ladd@spiny.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-25 02:42 -------
Actually this is a GCC extension (which really was not documented at all) and is rejected for 3.4.0:
pr13851.cc: In function `int main()':
pr13851.cc:11: error: invalid initialization of non-const reference of type 'unsigned char*&' from a
temporary of type 'unsigned char*'
pr13851.cc:5: error: in passing argument 1 of `void func(unsigned char*&)'
So closing as fixed on the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |accepts-invalid
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13851