This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
error: `.' cannot appear in a constant-expression in gcc 3.4.2 version
- From: <anandi dot thirunavukkarasu at wipro dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 9 Dec 2005 21:15:25 +0530
- Subject: error: `.' cannot appear in a constant-expression in gcc 3.4.2 version
I am using a switch case statement in my code. The case condition checks
for a "class object.value".
This is throwing an error saying
error: `.' cannot appear in a constant-expression
The same code works fine in other versions of gcc (i.e. 2.96 ). But I
encounter this problem in gcc 3.4.2 version.
Can u help me with a fix for this issue?