Repository navigation
Improver handling of "if constexpr" non-braced substatement #228
wchilders-nvidia
started this conversation in
Issue Triage - Compilation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
When a substatement of an "if constexpr" is discarded during instantiation and was not enclosed in braces, statements following the discarded statement could be additionally discarded.
Reproducing Source Code
Command-line Options
cpfe --c++16
Type of Issue
[Front End] This code SHOULD compile with these options.
Additional Details
This was observed only with lambdas because they don't use the cached positional information that normal template instantiations of "if constexpr" would.
Reproducing (Standard) Configuration(s)
linux-gcc-debug
Reproducing (Non-standard) Configuration
No response
I acknowledge that:
LICENSE.txtfile in my.zipor.tar.gzupload. If I included aLICENSE.txtfile, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.All reactions