PR tree-optimization/86400 - set<string>::set<char (*)[2]) constructor does not work...
authorMartin Sebor <msebor@redhat.com>
Thu, 5 Jul 2018 14:36:09 +0000 (14:36 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 5 Jul 2018 14:36:09 +0000 (08:36 -0600)
commit715fcd73b66c639d9e0e3f3ef9c6ff9d621d7131
treebf5e2c54a9f08d3e851b7523146bc2c9d4cc8238
parent09cff37bfdcc9407a72262cbdd6fd3350488d934
PR tree-optimization/86400 - set<string>::set<char (*)[2]) constructor does not work with array argument

gcc/ChangeLog:
* tree-ssa-strlen.c (maybe_set_strlen_range): Use type size rather
than its domain to compute its the upper bound of a char array.

gcc/testsuite/ChangeLog:
* gcc.dg/strlenopt-47.c: New test.
* gcc.dg/strlenopt-48.c: New test.

From-SVN: r262438
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-47.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strlenopt-48.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c