This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13384] error: non-lvalue in assignment - message a little misleading for C++
- 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: 13 Mar 2004 06:43:05 -0000
- Subject: [Bug c++/13384] error: non-lvalue in assignment - message a little misleading for C++
- References: <20031211163614.13384.gianni@mariani.ws>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-13 06:43 -------
Icc 6.0 produces:
pr13384.cc(15): error: expression must be a modifiable lvalue
T() = T();
^
detected during instantiation of "void func<T>() [with T=int]"
compilation aborted for pr13384.cc (code 2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13384