You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that is an illegal output. Either the two my_x are the same, and it should print 1 1, or they're different, and it should print 0 0. I think 0 0 is the correct answer, but I'm not very familiar with this corner of the C++ specification.
Similar to #10492 - that one's long gone, but maybe a similar fix would apply here. (GCC has a similar bug, but only with -fmerge-all-constants. edit: And that one's documented as giving noncompliant behavior, so I'm not sure if it is a bug.)
The text was updated successfully, but these errors were encountered:
https://godbolt.org/z/Pjnz6jbGb
This prints four pointers, then 0 1.
I believe that is an illegal output. Either the two my_x are the same, and it should print 1 1, or they're different, and it should print 0 0. I think 0 0 is the correct answer, but I'm not very familiar with this corner of the C++ specification.
Similar to #10492 - that one's long gone, but maybe a similar fix would apply here. (GCC has a similar bug, but only with -fmerge-all-constants. edit: And that one's documented as giving noncompliant behavior, so I'm not sure if it is a bug.)
The text was updated successfully, but these errors were encountered: