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

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments



------- Comment #18 from manu at gcc dot gnu dot org  2007-08-20 16:46 -------
When I say "constant are not propagated" I mean "the constant value of a
variable" such as:

  int i=0;
  use(&i);
  foo(i);

Here, GCC does not propagate the value of i to do foo(0). Remove the call to
use and then it will.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138


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