This is the mail archive of the gcc-patches@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]

Re: Patch not applied (was: PATCH to generate error for address of cast)


On Sunday, December 29, 2002, at 07:15  AM, Matthias Klose wrote:

The patch mentioned in

	http://gcc.gnu.org/ml/gcc-patches/2002-08/msg01270.html

wasn't applied, although it seemed to be accepted?

Thanks to Martin v. Loewis for pointing this out.
http://bugs.debian.org/79225 is a related issue.
Eh?  Looks to me like it's applied.  Doing a simple
test with mainline:
bash-2.05$ cat foo.cc
void foo()
{
  int x;
  long* p = &((long) x);
}
bash-2.05$ ~/root/bin/g++ -c foo.cc
foo.cc: In function `void foo()':
foo.cc:4: error: non-lvalue in unary `&'
bash-2.05$

			--Matt


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