[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    Re: [PATCH] PR c++/16307
From:       Dirk Mueller <dmuell () gmx ! net>
Date:       2006-10-29 19:03:21
Message-ID: 200610292003.21526.dmuell () gmx ! net
[Download RAW message or body]

On Sunday, 29. October 2006 02:40, Gabriel Dos Reis wrote:

> | +    return s [s ['\x80']];          // { dg-warning "array subscript" }
> Why double indexing?

It seems to be the easiest way to get a char subscript :) It is actually from 
the bugreport. But I don't mind, I've changed the testcase a little: 

+extern volatile char bla;
+
 char foo (const char *s)
 {
-    return s [s ['\x80']];          // { dg-warning "array subscript" }
+    return s [bla];          // { dg-warning "array subscript" }
 }


Dirk
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic