[Bug c++/13851] GCC 3.3.x mishandles pass by reference casted pointer
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 25 02:42:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list