Filip Sajdak

Results 37 issues of Filip Sajdak

Cppfront recognized a line as a cpp2 line but it is in the middle of a raw string literal. Cpp2 code: ```cpp auto a = R"( i:int = 42; )";...

bug

The initialization safety guarantee informs that the global variable is a local variable and that it needs to be initialized before the local variable in the function. ```cpp i :...

bug

The local variables can be initialized by external functions that take `out` argument. `cpp2::deferred_init` treat it as violation of initialization safety and reports error: ``` error: local variable i is...

bug

@hsutter regarding your question: https://github.com/hsutter/cppfront/blob/bf5998a5e9145f11a935c2700b1db50f6e2de2fa/include/cpp2util.h#L809 I am currently trying to use cppfront to build my project (that's why I send PRs - I am implementing what I am missing). I...

question

Having a single expression function that uses multiple return values syntax compiles to bad cpp1 code. ```cpp fun: () -> (i:int) = i = 42; ``` ## Steps ``` tests...

bug

UFCS is not triggered when a function is called as a class method on a class member variable. ```cpp main: () -> int = { p := std::pair(1,2); p.first.ufcs(); //...

bug

The current implementation has no safety checks for: * deduced pointers from cpp1 or functions that deduce return types, * deduced pointers from cpp2 variables or functions, This change brings...

Current implementation does not allows to write functions that explicitly return pointers (they can be deduced with using auto). ```cpp working: (inout i : int) -> auto = { return...

Current implementation is not handling deduced pointer types when analysing safety checks. It means that this code will pass safety checks ```cpp i : int = 42; pi := i&;...

Current implementation supports only pointer of the form ```cpp p: *int = ...; ``` This change extends that to allow multi-level pointers and make below code compilable ```cpp main: (argc...