cppfront
cppfront copied to clipboard
A personal experimental C++ Syntax 2 -> Syntax 1 compiler
**Describe the bug** Title. **To Reproduce** Steps to reproduce the behavior: 1. Sample code ```cpp main: () = { (copy a: std::string, copy b: std::string) { a = "Hello, ";...
**Describe the bug** I can't find a Cpp2 syntax to emit a `static constexpr` local variable. `static constexpr` variables are useful (particularly in debug/non-optimised builds) for look-up tables in a...
Issues found by fuzzing so far: - https://github.com/hsutter/cppfront/issues/117 - https://github.com/hsutter/cppfront/issues/1123 - https://github.com/hsutter/cppfront/issues/1129 - https://github.com/hsutter/cppfront/issues/1130 - https://github.com/hsutter/cppfront/issues/1158 - https://github.com/hsutter/cppfront/issues/1163 - https://github.com/hsutter/cppfront/issues/1169 - https://github.com/hsutter/cppfront/issues/1170 - https://github.com/hsutter/cppfront/issues/1264 I'm using this code to fuzz:...
Disclaimer (and answer to the questions in the [suggestion template](https://github.com/hsutter/cppfront/blob/main/.github/ISSUE_TEMPLATE/suggestion.md)): First of all, what I'm about to suggest is not necessarily about eliminating security vulnerabilities or guidance literature (but it...
**Describe the bug** As title says, I would expect this to work, and you'd later do the full definition (which I guess should reuse the same "inline struct" under the...
**Describe the bug** This is a minor formatting bug when lowering to C++. Assigning a function expression to a `constexpr` variable causes the lowered C++ function's compound statement / block...
What if we could simply call a templated function without angle brackets. To be clear I'm not talking about implicitly deducing Note: I'll write in cpp1 syntax simply because I'm...
**Describe the bug** A Cpp2 function expression cannot capture a reference to a callable passed via a forwarding reference (and then call it), meaning that the callable has to be...
(This might be more of a suggestion than a bug.) **Describe the bug** Cannot use `static_assert` at file scope when cppfront runs in Pure Cpp2 mode. **To Reproduce** Run cppfront...
**Describe the bug** A Cpp2 function declared as constexpr (with `==`) cannot be called from a `static_assert` at file scope because the function definition is moved below the `static_assert` line....