This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18474] New: Unary plus/minus lvalueness not diagnosed in templates
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2004 10:50:55 -0000
- Subject: [Bug c++/18474] New: Unary plus/minus lvalueness not diagnosed in templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-------------------------------------
template <int>
void g(void)
{
-n = 0; // { dg-error "non-lvalue" "" { xfail *-*-* } }
+n = 0; // { dg-error "non-lvalue" "" { xfail *-*-* } }
}
-------------------------------------
This should be rejected but does not (until instantiation).
--
Summary: Unary plus/minus lvalueness not diagnosed in templates
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giovannibajo at libero dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18474