bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in gcc version 2.7.2.3


From: Vasily Karyaev
Subject: bug in gcc version 2.7.2.3
Date: Sat, 14 Oct 2000 20:27:57 +0400 (MSD)

Dear Sir or Madam!

Seems to be I found a bug in gcc version 2.7.2.3.

Look at the following code please:

/****** test.cpp ********/

struct  CLASS {
typedef const   int     cint;
void    f() { cint x=0; x++; }
};

/***********************/

I think that compiler must report the error:
test.cpp: In method `void CLASS::f()':
test.cpp:3: increment of read-only variable `const int const x'

But it doesn't happen ;(

-- 
Vasily Karyaev
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]