This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61402] [C++1y] Init-capture with side effect not working for some types
- From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jun 2014 21:14:51 +0000
- Subject: [Bug c++/61402] [C++1y] Init-capture with side effect not working for some types
- Auto-submitted: auto-generated
- References: <bug-61402-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61402
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard-gccbugzilla@metafoo
| |.co.uk
--- Comment #2 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
Your testcase has undefined behavior:
[ i = ++t ]
/*...*/
(t);
The increment and load of 't' are unsequenced.