[Bug c++/63601] New: Segfault on usage of 'this' in unevaluated context inside lambda

2014-10-20 Thread sneves at dei dot uc.pt
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt The following minimal example results in an 'ICE: Segmentation fault' in g++ 4.8.1, 4.9.1, and 5.0.0 20141019: auto f = []{ sizeof(this); };

[Bug c++/64356] New: Some constexpr expressions not recognized as constexpr

2014-12-18 Thread sneves at dei dot uc.pt
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Consider the following snippet: templatesize_t N constexpr uint64_t f(const char (x)[N]) { uint64_t s = 0; #if defined(FAILS) for(uint64_t c : x) s += c; #else

[Bug c++/64931] New: ICE on function with deduced return type and input is instantiated template class

2015-02-03 Thread sneves at dei dot uc.pt
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Minimal example: templatetypename T, unsigned long N struct array { T data[N]; }; auto copy(arrayint, 32 const x) { return x; } This only

[Bug c++/64562] New: Member functions with r-value reference for *this and deduced return type incorrectly rejected as ambiguous

2015-01-11 Thread sneves at dei dot uc.pt
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Consider the following program: #include iostream #define RETURN_TYPE auto namespace { struct S { RETURN_TYPE

[Bug c++/66923] New: Variable template initialized using auto deduces wrong type

2015-07-17 Thread sneves at dei dot uc.pt
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Target Milestone: --- Consider the following sample: templateint struct S {}; templateint N constexpr auto V = SN{}; // constexpr SN V

[Bug c++/68495] New: Error when expanding nontype variadic argument in trailing return type

2015-11-22 Thread sneves at dei dot uc.pt
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Target Milestone: --- Minimal example, works on Clang and MSVC but fails to compile on every GCC version since 4.7: template struct int_seq

[Bug c++/68495] Error when expanding nontype variadic argument in trailing return type

2015-11-23 Thread sneves at dei dot uc.pt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68495 --- Comment #1 from Samuel Neves --- Minimal example can be further reduced to template struct int_seq {}; constexpr struct { constexpr int operator()(int x) const { return x + 1; } } f1 {}; template auto f2(F f, int_seq) ->

[Bug c++/104802] New: Non-type template parameter of reference type disallowed under certain conditions

2022-03-05 Thread sneves at dei dot uc.pt via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt Target Milestone: --- Minimal (C++17 and 20) example: template struct S { template void operator()() const {} }; struct

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-11 Thread sneves at dei dot uc.pt via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 Samuel Neves changed: What|Removed |Added CC||sneves at dei dot uc.pt --- Comment #6

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-13 Thread sneves at dei dot uc.pt via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 --- Comment #13 from Samuel Neves --- Something simple like this -- https://godbolt.org/z/61orYdjK7 -- already exhibits the effect. Furthermore, and this also applies to the full BLAKE2b compression function, if you replace all the xors in

[Bug sanitizer/110027] New: Misaligned vector store on detect_stack_use_after_return

2023-05-29 Thread sneves at dei dot uc.pt via Gcc-bugs
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: sneves at dei dot uc.pt CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot