This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71502] Fold expression unpacks (I < ...) the wrong way


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]