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]

[Bug c++/13851] GCC 3.3.x mishandles pass by reference casted pointer


------- 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


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