Repository navigation
Dependent NTTP base mem-initializer emitted out of declaration order #301
nv-cmeerw
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
A base class initializer with a dependent non-type template parameter can be recorded in the wrong order in the IL (and emittted in the wrong order by the C++ generating back end).
Reproducing Source Code
Command-line Options
--c++11
Type of Issue
[Back End] There is a problem with the generated C++ code.
Additional Details
Recorded and generated as "C() : B(), A() { }" instead of "C() : A(), B() { }"
Reproducing (Standard) Configuration(s)
linux-gcc-debug
Reproducing (Non-standard) Configuration
The order in the IL can be observed in any configuration, but the wrong order from the C++ back end can only be observed in configurations with
ALL_TEMPLATE_INFO_IN_IL=1I 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