Neil Henderson

Results 29 issues of Neil Henderson

**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...

bug

**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...

bug

(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...

bug

**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....

bug

## Suggestion cppfront could detect at runtime (and maybe even compile time?) and prevent aliasing of `inout` or `move` function parameters when the function also takes an `in` parameter of...

suggestion

Use a CTAD deduction guide to deduce the `std::common_type` for both types (if a common one exists). This allows code like the following to compile without integer precision conversion warnings:...

**Describe the bug** Clang produces a `Wshorten-64-to-32` warning with a `cpp2::range` when it is initialised with an integer literal as the first member and an expression producing a `size_t`/`size_type` as...

bug

As I understand it, there's no `friend` keyword in Cpp2, but some operators are emitted as hidden friends in a type: - streaming operators `>>` and ` void; ``` (Maybe...

suggestion

For the same motivations as in [P0847](https://wg21.link/p0847), I'd like to be able to write the equivalent of the "deducing this" feature in Cpp2. Here's one example where the feature would...

suggestion