[Bug c++/69302] New: Using bswap in template function with -ftrack-macro-expansion=0 results in a false compiler error

2016-01-15 Thread kholdstare0.0 at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- Here is the a minimal test.cpp: #include template

[Bug c++/69302] Using bswap in template function with -ftrack-macro-expansion=0 results in a false compiler error

2016-01-15 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69302 --- Comment #2 from Alexander Kondratskiy --- Created attachment 37363 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37363=edit Preprocessed source that results in error g++ -std=c++1y -c -Werror -Wall -Wextra preprocessed.cpp -o test.o

[Bug c++/70141] [6 Regression] template parameter not deducible in partial specialization of template inside template

2016-03-15 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #20 from Alexander Kondratskiy --- Awesome! Thank you Jason!

[Bug c++/70141] New: [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- Created attachment 37899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37899=e

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #2 from Alexander Kondratskiy --- Looking at the diffs in r229628 linked by Jakub, I find the changes to lines 8791 and 8793 in pt.c to be kinda fishy: https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cp/pt.c?r1=229628=229627=229628

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #3 from Alexander Kondratskiy --- Sorry, I take the "fishy" comment back. I'm not familiar enough with the code.

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #7 from Alexander Kondratskiy --- To add some color, maybe this is related to non-deduced contexts from 14.8.2.5p5 in the standard: The non-deduced contexts are: — The nested-name-specifier of a type that was specified using a

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #8 from Alexander Kondratskiy --- I'm sorry Markus, but "clang issues a warning" is not a good enough reason to mark this invalid. By the same token, the warning in clang could have been introduced "because gcc issues an error". What

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #12 from Alexander Kondratskiy --- Ok, I will ask stackoverflow. Thanks.

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #14 from Alexander Kondratskiy --- Stackoverflow question/answer: http://stackoverflow.com/questions/35875829/template-parameters-not-deducible-in-partial-specialization-in-gcc6-for-a-case

[Bug c++/70141] [6.0 regression] template parameter not deducible in partial specialization of template inside template

2016-03-08 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70141 --- Comment #10 from Alexander Kondratskiy --- My issue is that this code was accepted since gcc 4.8 completely fine. Unless there is a specific line in the standard that prevents this from working, I don't understand how appealing to potential

[Bug c++/78282] New: [6/7 Regression] Overload resolution failure, in parameter pack expansion, inside a template class

2016-11-09 Thread kholdstare0.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- Created attachment 40009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40009=e

[Bug c++/78282] [6/7 Regression] Overload resolution failure, in parameter pack expansion, inside a template class

2016-11-09 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78282 --- Comment #1 from Alexander Kondratskiy --- Created attachment 40010 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40010=edit The source before the preprocessing step

[Bug demangler/86664] New: Demangler segfaults

2018-07-24 Thread kholdstare0.0 at gmail dot com
: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- Created attachment 44432 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44432=edit mangled_symbol

[Bug demangler/86664] Demangler segfaults

2018-07-24 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86664 --- Comment #1 from Alexander Kondratskiy --- Calling c++filt on the symbol (see attachment) results in a segfault. This may be a similar issue to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82890

[Bug c++/92849] New: call to 'operator()' incorrectly considered ambiguous, when inherited twice with different type parameters

2019-12-06 Thread kholdstare0.0 at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- Minimal test case: #include template struct declfunc; template

[Bug c++/92849] call to 'operator()' incorrectly considered ambiguous, when inherited twice with different type parameters

2019-12-06 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92849 --- Comment #1 from Alexander Kondratskiy --- Actually, this might be bogus. If I do an explicit `using`, everything works: #include template struct declfunc; template struct declfunc { Result operator()

[Bug c++/92849] call to 'operator()' incorrectly considered ambiguous, when inherited twice with different type parameters

2019-12-06 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92849 --- Comment #3 from Alexander Kondratskiy --- I think you're right. I think the bug can be closed.

[Bug libstdc++/93147] std::tuple of empty structs with member equality operators has ambiguous equality operator

2020-01-03 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93147 --- Comment #2 from Alexander Kondratskiy --- Hi, it compiles fine with both. See godbolt link for Clang using GCC's libstdc++ : https://godbolt.org/z/iFHemn

[Bug c++/93147] New: std::tuple of empty structs with member equality operators has ambiguous equality operator

2020-01-03 Thread kholdstare0.0 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kholdstare0.0 at gmail dot com Target Milestone: --- The following code: #include struct A { bool operator == (A) const { return true

[Bug libstdc++/93147] std::tuple of empty structs with member equality operators has ambiguous equality operator

2020-01-03 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93147 --- Comment #9 from Alexander Kondratskiy --- Ah, that explains everything. Thank you for clarifying.

[Bug libstdc++/93147] std::tuple of empty structs with member equality operators has ambiguous equality operator

2020-01-03 Thread kholdstare0.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93147 --- Comment #6 from Alexander Kondratskiy --- Interesting. Some thoughts I had - - If this is the correct behavior given the C++ standard, then that means the tuple implementation in the library has to be fixed. - If this is incorrect