wheatman

Results 19 comments of wheatman

This still reproduces on post 16 trunk(5cbcaf1678709e4da8b32f075a5c9a3cab028965) https://godbolt.org/z/vEcEfET1E Slightly simpler code ``` #include void f(std::map &v) { for (auto i : v) { } } ``` Produces the following assembly...

This still reproduces in post 16 trunk(12e9c7aaa66b7624b5d7666ce2794d912bf9e4b7) and compiles without error code ``` class Base { private: template void foo(T t) {} }; class Derived : public Base { public:...

This still reproduces on post 16 trunk (12e9c7aaa66b7624b5d7666ce2794d912bf9e4b7) https://gcc.godbolt.org/z/jxjxbazM7 I am copying the code and backtrace here to fix formatting and make it easier to read ``` template struct Data...

this still reproduces on post 16 trunk (12e9c7aaa66b7624b5d7666ce2794d912bf9e4b7) https://godbolt.org/z/M63cTKTf1 The assert that gets triggered is ``` clang++: /root/llvm-project/clang/lib/Sema/SemaExpr.cpp:3793: bool clang::Sema::CheckLoopHintExpr(clang::Expr*, clang::SourceLocation): Assertion `E && "Invalid expression"' failed. ``` The full...

This still triggers an assertion on post 16 trunk(c3b27c236d6a495acbe2ba95c43faf9a98e81a46) https://godbolt.org/z/16EGfT7cM The slightly shorted code is ``` template class CommonUnit { public: template inline void set(settype Value, unitenum theUnit = DefaultUnit)...

The same behavior is still seen on post 16 trunk (c3b27c236d6a495acbe2ba95c43faf9a98e81a46) with the warning appearing only when the `x=0` line is removed A slightly different warning does appear with `-Weverything`...

Still reproduces on trunk(c3b27c236d6a495acbe2ba95c43faf9a98e81a46), it triggers the following assertion ```Assertion `CAT && "can't emit array init for non-constant-bound array"' failed.``` https://godbolt.org/z/KxT8jeeYv The full current backtrace is ``` :8:21: warning: excess...

``` template T foo(int payload); struct Bar { }; template auto foo(int payload) { Bar result; return result; } ``` This reproduces on trunk (bef4007a421a35399dbdb5719299a6a9e6099bde) https://godbolt.org/z/eYf8fMz7v

The backtrace was in the link, doesn't look to trigger an assertion I'll copy it here ``` PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed...

reproduces on trunk (c3b27c236d6a495acbe2ba95c43faf9a98e81a46) triggering the following assert ```Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.``` https://godbolt.org/z/bcTrYda7h ``` enum E e; void foo(void) { int d[e]; } ```...