This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44263] missing diagnostic on questionable array sizes with -pedantic
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Sep 2011 22:34:17 +0000
- Subject: [Bug c++/44263] missing diagnostic on questionable array sizes with -pedantic
- Auto-submitted: auto-generated
- References: <bug-44263-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44263
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|gcc-bugs at gcc dot gnu.org |paolo.carlini at oracle dot
| |com
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-28 22:34:17 UTC ---
Uhm, when compute_array_index_type is called, size is always an INTEGER_CST.
For the record ICC also accepts this in strict mode and without warnings.