1 // { dg-do compile { target c++11 } }
5 #pragma GCC push_options
6 #pragma GCC optimize "0"
9 sink (const void*, ...);
15 const std::size_t len
= 1;
16 typedef std::array
<int, len
> array_type
;
17 typedef array_type::iterator iterator
;;
20 iterator b
= a
.begin(); // { dg-bogus "-Wmaybe-uninitialized" }
21 iterator e
= a
.end(); // { dg-bogus "-Wmaybe-uninitialized" }
27 const std::size_t len
= 3;
28 typedef std::array
<int, len
> array_type
;
29 typedef array_type::reverse_iterator reverse_iterator
;
32 reverse_iterator b
= a
.rbegin(); // { dg-bogus "-Wmaybe-uninitialized" }
33 reverse_iterator e
= a
.rend(); // { dg-bogus "-Wmaybe-uninitialized" }
39 #pragma GCC pop_options