[Bug sanitizer/98206] UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2021-01-01 Thread rbock at eudoxos dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98206 --- Comment #6 from Roland B --- Great! This also works well in the original (more complex) scenario (https://github.com/rbock/sqlpp11/issues/355).

[Bug c++/98206] UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2020-12-08 Thread rbock at eudoxos dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98206 --- Comment #1 from Roland B --- Here is the actual error message: // - example.cpp:16:49: runtime error: reference binding to misaligned address 0x7ffdc34cab61 for type 'const struct X', which requires 8 byte alignment 0x7ffdc34cab61: note

[Bug c++/98206] New: UBSan: Casting from multiple inheritance base to derived class triggers undefined behavior sanitizer

2020-12-08 Thread rbock at eudoxos dot de via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- The following code incorrectly triggers undefined behavior sanitizer

[Bug c++/81429] maybe_unused attribute triggers syntax error when used on first argument to a constructor

2019-08-07 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429 --- Comment #10 from Roland B --- (In reply to Marek Polacek from comment #9) > Fixed on trunk, will backport to 9.3 later. Thanks! Much appreciated :-)

[Bug c++/82782] New: ICE: nested template alias and specialized template with auto template parameter

2017-10-31 Thread rbock at eudoxos dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- Follow up to bug 82085: This valid code now creates an internal compiler error

[Bug c++/82085] [6 Regression] ICE: Template variable reference used in nested template alias

2017-10-31 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82085 --- Comment #12 from Roland B --- Done, reported as bug 82782. Thanks for your help!

[Bug c++/82085] [6 Regression] ICE: Template variable reference used in nested template alias

2017-10-31 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82085 --- Comment #9 from Roland B --- Here is the new minimal example (please let me know if this should go into a new bug report): // - template struct make_char_sequence; template struct make_char_sequence

[Bug c++/82085] [6 Regression] ICE: Template variable reference used in nested template alias

2017-10-31 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82085 --- Comment #8 from Roland B --- (In reply to Paolo Carlini from comment #7) > Fixed trunk and 7.3.0 so far. Awesome! Sadly, my "real" code still produces an internal compile error. I will try to create a new minimal example. Until then, you c

[Bug c++/82085] Crash: Template variable reference used in nested template alias

2017-09-03 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82085 --- Comment #1 from Roland B --- Forgot to mention: The command line I used: /usr/local/gcc-trunk/bin/g++ -std=c++1z -Wall -Wpedantic -Wextra gcc-crash.cpp Output: gcc-crash.cpp:8:41: internal compiler error: Segmentation fault using type = c

[Bug c++/82085] New: Crash: Template variable reference used in nested template alias

2017-09-02 Thread rbock at eudoxos dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- I am currently porting sqlpp11 to C++17 and encountered a compiler crash using the following code // --- template

[Bug c++/77449] False ambiguity for variadic function with non-deduced template parameter

2016-09-02 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77449 --- Comment #2 from Roland B --- (In reply to Eric Gallager from comment #1) > As a human reader who doesn't know C++ very well I'd consider it to be > ambiguous, too... maybe as a compromise the error could be downgraded to a > warning? "int" i

[Bug c++/77449] New: False ambiguity for variadic function with non-deduced template parameter

2016-09-02 Thread rbock at eudoxos dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- g++ considers the following code ambiguous: template auto bar(Check, T...) -> void; template auto bar(int, T...) -> void

[Bug c++/70551] member function of template instantiated even though only declaration is needed

2016-04-05 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70551 --- Comment #2 from Roland B --- (In reply to Jonathan Wakely from comment #1) > Your interpretation would mean that whether a compiler performs copy elision > would change whether a program is well-formed or not (rather than only > changing whet

[Bug c++/70551] New: member function of template instantiated even though only declaration is needed

2016-04-05 Thread rbock at eudoxos dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- This code fails to compile: template struct X { X(X&&) { static_assert(sizeof(T) < 1, "Intentional Failu

[Bug c++/67844] [6 Regression] Cannot make tuple of class with template constructor

2015-10-05 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67844 --- Comment #4 from Roland B --- (In reply to Ville Voutilainen from comment #3) > Patch available https://gcc.gnu.org/ml/gcc-patches/2015-10/msg00358.html Works for me (sqlpp11, develop branch).

[Bug c++/67844] New: Cannot make tuple of class with template constructor

2015-10-04 Thread rbock at eudoxos dot de
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- Created attachment 36443 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36443&action=edit struct with template constructor, instantiate, try to make_tuple f

[Bug c++/67319] Short-hand concepts for variadic member functions broken

2015-09-26 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67319 --- Comment #1 from Roland B --- Using the terse notation works fine, btw: // - template concept bool Any() { return true; } struct my_struct { auto sample(Any... args) -> void; }; int main() { my_struct{}.s

[Bug c++/67319] New: Short-hand concepts for variadic member functions broken

2015-08-22 Thread rbock at eudoxos dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de Target Milestone: --- Created attachment 36240 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36240&action=edit sample code that fails to compile with -std=c+

[Bug c++/66937] Do not compare constraints for unconstrained template template parameters

2015-08-06 Thread rbock at eudoxos dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66937 --- Comment #3 from Roland B --- (In reply to Jason Merrill from comment #1) > Author: jason > Date: Thu Aug 6 17:42:25 2015 > New Revision: 226687 > > URL: https://gcc.gnu.org/viewcvs?rev=226687&root=gcc&view=rev > Log: > PR c++/66937 >

[Bug c++/66937] New: Do not compare constraints for unconstrained template template parameters

2015-07-19 Thread rbock at eudoxos dot de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rbock at eudoxos dot de CC: andrew.n.sutton at gmail dot com Target Milestone: --- Created attachment 36014 --> https://gcc.gnu.org/bugzi