This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71502] Fold expression unpacks (I < ...) the wrong way
- From: "michele.caini at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Jun 2016 15:12:45 +0000
- Subject: [Bug c++/71502] Fold expression unpacks (I < ...) the wrong way
- Auto-submitted: auto-generated
- References: <bug-71502-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71502
--- Comment #1 from Michele Caini <michele.caini at gmail dot com> ---
I notice that there is a flaw in the text.
I expect this to compile and run with no errors, as it happens indeed:
#include<cassert>
int main() { assert((0 < 42) < 3); }
From what I wrote, it would seem that I consider it an error.
The actual issue is related to the fold expression.