[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-07-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > > Discussion on the WG14 reflectors suggested that the qualifiers should > > > still be stripped from the type of the controlling expression; the > > > standard should be corrected to make this more clear. > > > > > > Does WG14 think we're right to produce a qualified

[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-06-28 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Discussion on the WG14 reflectors suggested that the qualifiers should > > still be stripped from the type of the controlling expression; the standard > > should be corrected to make this more clear. > > Does WG14 think we're right to produce a qualified rvalue in this

[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-06-27 Thread Richard Smith via cfe-commits
zygoloid wrote: > Discussion on the WG14 reflectors suggested that the qualifiers should still > be stripped from the type of the controlling expression; the standard should > be corrected to make this more clear. Does WG14 think we're right to produce a qualified rvalue in this case? Another

[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-06-27 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Implementation LGTM. https://github.com/llvm/llvm-project/pull/96913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes It is possible to get a qualified rvalue in C. Consider: struct { cont int i; } foo(); _Generic(foo().i, ...); foo() returns an rvalue for the anonymous structure, the member access expression then

[clang] [C11] Generic selection expressions and qualified rvalues (PR #96913)

2024-06-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/96913 It is possible to get a qualified rvalue in C. Consider: struct { cont int i; } foo(); _Generic(foo().i, ...); foo() returns an rvalue for the anonymous structure, the member access expression then resu