[Bug libstdc++/94562] New: C++20: std::shared_ptr{} <=> nullptr ill-formed

2020-04-11 Thread daniel.kruegler at googlemail dot com
ponent: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Target Milestone: --- The following program (using -Wall -Wextra -std=c++2a -pedantic) is rejected: #include bool ok = std::shared_ptr{} <=> nullptr; int main

[Bug c++/94563] New: Relational operations between pointer and nullptr accepted

2020-04-11 Thread daniel.kruegler at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Target Milestone: --- The following code is accepted for language versions c++14, c++17, as well as c++20 using the following additional compiler flags

[Bug c++/94563] Relational operations between pointer and nullptr accepted

2020-04-11 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94563 --- Comment #1 from Daniel Krügler --- To clarify the actual bug character of this issue, the following example shows it more clearly: template bool test(T*) { return true; } int main() { test((int*)(nullptr)); } This program should be ill

[Bug c++/94564] New: C++20: Three-way comparison between pointer and nullptr accepted

2020-04-11 Thread daniel.kruegler at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Target Milestone: --- The following program is accepted when compiling against C++20, but should be rejected, because the C++20 working draft does

[Bug libstdc++/94565] New: C++20: Comparing comparison category types against 0/nullptr is not noexcept

2020-04-11 Thread daniel.kruegler at googlemail dot com
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Target Milestone: --- The following program should be accepted, but is rejected due to a violation of the static_assertion

[Bug c++/94025] Expected-to-fail compilation goes through by not detecting mutable-specifier on lambda

2020-04-14 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94025 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/94554] spurious -Waddress warning within "if constexpr" function-null compares

2020-04-14 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554 --- Comment #3 from Daniel Krügler --- (In reply to Melissa from comment #0) > Clang errors on this case, so it's possible that my code is invalid: Is it > legal to compare a function pointer against null in a constant-expression? The example is

[Bug libstdc++/94049] For better diagnostics CPOs should not use concepts for operator()

2020-04-15 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94049 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/94619] String literals as non-type template parameter fails to compile with partial specialization of calling function

2020-04-16 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94619 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/91630] std::any SFINAE breaks valid code since 9.1

2020-04-16 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91630 --- Comment #1 from Daniel Krügler --- This looks like a variant fo bug 90415 to me.

[Bug c++/94550] False positive with -Wparentheses

2020-04-17 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94550 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/94644] Wrong is_nothrow_move_constructible result if used in a template first

2020-04-18 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94644 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/94644] Wrong is_nothrow_move_constructible result if used in a template first

2020-04-18 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94644 --- Comment #3 from Daniel Krügler --- (In reply to Avi Kivity from comment #2) > PR 94033 is also related to constructibity trait testing with an > inaccessible constructor. Looks like the intrinsic depends on where it was > evaluated. Indeed t

[Bug c++/94025] Expected-to-fail compilation goes through by not detecting mutable-specifier on lambda

2020-04-18 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94025 --- Comment #2 from Daniel Krügler --- (In reply to Daniel Krügler from comment #1) [..] > I'm surprised that the Visual Studio compiler (I tested 2019) rejects the > original example, this looks like a bug to me, especially since that > compiler

[Bug c++/94721] New: C++2a: Three-way comparison operator for function pointers rejected

2020-04-22 Thread daniel.kruegler at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Target Milestone: --- Using the compiler flags -Wall -Wextra -std=c++2a -pedantic the following code example //-- #include

[Bug c++/94721] C++2a: Three-way comparison operator for function pointers rejected

2020-04-23 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94721 --- Comment #2 from Daniel Krügler --- (In reply to Marek Polacek from comment #1) > Confirmed, thanks for the report. Sigh, thanks. I'm starting to realize now, that it seems that the *intention* of https://wg21.link/p1959r0 adopted in November

[Bug c++/94819] [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't Pt. 2

2020-04-28 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94819 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/94923] False positive -Wclass-memaccess with trivially copyable std::optional

2020-05-02 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94923 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/95242] [10/11 Regression] spurious "warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]" on comparisons with -std=c++2a

2020-05-26 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95242 --- Comment #3 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #2) > Another way to implement the __unspec constructor would be: > > consteval __unspec(int __n) { if (__n != 0) throw __n; } > > But I think I discussed this w

[Bug c++/95242] [10/11 Regression] spurious "warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]" on comparisons with -std=c++2a

2020-05-27 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95242 --- Comment #5 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #4) > It's consteval, the throw is there to make it not a constant expression and > give an error if anything except 0 is used. i.e. it can never throw, it > either

[Bug c++/95368] gcc things that a lambda capture is both const and mutable

2020-05-27 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95368 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/95322] std::list | take | transform, expression does not work cbegin() == end()

2020-05-27 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95322 --- Comment #7 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #6) > A new LWG issue has been submitted, and there is a suggested resolution. Will take care and inform in this issue here.

[Bug libstdc++/95322] std::list | take | transform, expression does not work cbegin() == end()

2020-05-28 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95322 --- Comment #12 from Daniel Krügler --- (In reply to Daniel Krügler from comment #7) > (In reply to Jonathan Wakely from comment #6) > > A new LWG issue has been submitted, and there is a suggested resolution. > > Will take care and inform in th

[Bug c++/95686] undefined reference to static local variable within inline function

2020-06-16 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/56208] New: sizeof sfinae fails to work

2013-02-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 Bug #: 56208 Summary: sizeof sfinae fails to work Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P

[Bug c++/56208] sizeof sfinae fails to work

2013-02-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 --- Comment #1 from Daniel Krügler 2013-02-04 19:54:47 UTC --- I just notice that the problem is not restricted to sizeof sfinae. In fact if we define the first test overload as follows: template static one test(decltype( (make() << make(

[Bug c++/56208] sizeof sfinae fails to work

2013-02-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 --- Comment #2 from Daniel Krügler 2013-02-04 19:57:18 UTC --- The actually tested gcc version was 4.8.0 20130127 (experimental)

[Bug c++/56208] [4.8 Regression] Some classic sfinae cases fail to work

2013-02-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 Daniel Krügler changed: What|Removed |Added Summary|[4.8 Regression] sizeof |[4.8 Regression] Some

[Bug c++/56208] [4.8 Regression] Some classic sfinae cases fail to work

2013-02-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 --- Comment #5 from Daniel Krügler 2013-02-05 06:37:06 UTC --- I think I found the problem, the root is actually not related to sfinae (fortunately), but to the way how name-lookup in classes work in gcc. The problem can be fixed (as a workaroun

[Bug c++/56208] [4.8 Regression] Some classic sfinae cases fail to work

2013-02-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56208 --- Comment #9 from Daniel Krügler 2013-02-05 19:09:15 UTC --- Further data about the root of the problem: It seems actually to be an access problem, the requirements for reproducing seem to be: 1) Some class B derives *privately* from a base c

[Bug c++/56222] Pointer to member in lambda should not require this to be captured

2013-02-06 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56222 --- Comment #2 from Daniel Krügler 2013-02-06 11:42:21 UTC --- The code looks valid to me, I don't see any reason for capturing something here. The expression "&Test::y" should be valid in that scope and returns an rvalue.

[Bug c++/56230] gcc aborts with "uninitialized const member" error even though an initializer is present

2013-02-06 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-02-06 19:35:15 UTC --- The problem seems to be fixed in 4.7.2 and in 4.8.0 trunk.

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-10 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #7 from Daniel Krügler 2013-02-10 16:00:42 UTC --- (In reply to comment #6) I agree with Paolo and Andrew when considered as a potentially C++03 code, but I would like to add that the example code is indeed valid in C++11, because

[Bug c++/56319] [DR 1051] implicit copy constructor is not deleted for type with rvalue reference member

2013-02-14 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #4 from Daniel Krügler 2013-02-14 20:36:52 UTC --- Seems to be a dup of bug 55017

[Bug c++/54835] [C++11] Explicit default constructors not respected during copy-list-initialization

2013-02-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54835 --- Comment #3 from Daniel Krügler 2013-02-16 11:57:21 UTC --- (In reply to comment #2) > I'm not opposed to this behavior, but I think it would be a language change. Thanks Jason. I just see now http://www.open-std.org/jtc1/sc22/wg21/docs/cwg

[Bug c++/56358] New: [C++11] Erroneous interaction of typedef and inherited constructor declarations

2013-02-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56358 Bug #: 56358 Summary: [C++11] Erroneous interaction of typedef and inherited constructor declarations Classification: Unclassified Product: gcc Version: 4.8.0

[Bug c++/56387] Alias of class template wrongly seen as different

2013-02-19 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-02-19 09:16:50 UTC --- The problem also exists on 4.8.0 trunk

[Bug c++/56388] catch(...) in lambda rejected

2013-02-19 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-02-19 09:23:34 UTC --- The problem also exists for 4.7.2, so no regression. The diagnostics is interesting: "7:9: error: '...' handler must be the last handler for its try block [-fpermissive] catch(...){ ^"

[Bug c++/56358] [C++11] Erroneous interaction of typedef and inherited constructor declarations

2013-02-20 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56358 --- Comment #1 from Daniel Krügler 2013-02-20 12:09:13 UTC --- As of the more recent trunk gcc 4.8.0 20130217 (experimental) these problems have been partially reolved. Template B1 is now accepted, but template B2 still causes problems. The redu

[Bug c++/56421] Non-matching overload produces template substitution error

2013-02-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56421 --- Comment #3 from Daniel Krügler 2013-02-22 10:59:28 UTC --- (In reply to comment #2) > Isn't G++ correct? Foo::type exists unconditionally, so SFINAE doesn't apply. > The invalid type is not in the immediate context of the substitution. This

[Bug c++/56421] Non-matching overload produces template substitution error

2013-02-22 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56421 --- Comment #7 from Daniel Krügler 2013-02-22 22:01:18 UTC --- (In reply to comment #4) > I think 13.3 [over.match] ¶2 and 13.3.1 [over.match.funcs] ¶7 say the > function > template specialization must be generated before the number of argumen

[Bug c++/56429] [C++11] Explicitly defaulted private constructor is not private

2013-02-23 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-02-23 22:30:35 UTC --- This issue may have similar reasons as bug 54812.

[Bug c++/56506] variadic class template specialization not selected as best match

2013-03-03 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2013-03-03 19:46:42 UTC --- I don't think that either example should be accepted. My understanding is, that the second T is still considered as a parameter pack but not as an expansion (because it is not fol

[Bug libstdc++/54043] [C++11] cout << nullptr does not work

2013-03-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54043 --- Comment #13 from Daniel Krügler 2013-03-04 10:46:27 UTC --- (In reply to comment #12) > Then I suppose that if anything this is library, not core, even if there are > interactions. Is there an open LWG DR? You may want to refer to: http://

[Bug c++/56506] variadic class template specialization not selected as best match

2013-03-05 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56506 --- Comment #4 from Daniel Krügler 2013-03-05 20:18:00 UTC --- (In reply to comment #3) Presumably my judgment was a bit premature and I think there is a logical flaw in my original argumentation: I think I misinterpreted 14.5.3 p5. I'm switchin

[Bug libstdc++/56609] New: [C++11] Several type traits give incorrect results for std::nullptr_t

2013-03-13 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56609 Bug #: 56609 Summary: [C++11] Several type traits give incorrect results for std::nullptr_t Classification: Unclassified Product: gcc Version: 4.8.0 Status:

[Bug libstdc++/56609] [C++11] Several type traits give incorrect results for std::nullptr_t

2013-03-13 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56609 --- Comment #2 from Daniel Krügler 2013-03-13 09:55:33 UTC --- (In reply to comment #1) > Seems straightforward enough to be fixable in 4.8.0 too. Does this patchlet > cover all the issues you can see? Thanks Paolo! I cannot test this from here

[Bug c++/56636] strange interaction of dynamic_cast and unique_ptr

2013-03-20 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2013-03-20 08:38:22 UTC --- It also works for gcc 4.8.0 trunk using mingw 64.

[Bug c++/56636] strange interaction of dynamic_cast and unique_ptr

2013-03-20 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56636 --- Comment #4 from Daniel Krügler 2013-03-20 10:19:47 UTC --- (In reply to comment #3) I tested gcc 4.8.0 20130310 (experimental)

[Bug c++/56693] Fail to ignore const qualification on top of a function type.

2013-03-23 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-03-23 12:20:30 UTC --- This looks like http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1584 to me

[Bug c++/56762] too aggressive optimization or missing warnings

2013-03-28 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-03-28 12:15:30 UTC --- This line does not what you expect it would do (Search for "most vexing parse"): CLockGuard sGuard(CIntLock()); It does *not* construct an CIntLock object nor does it declare

[Bug c++/56782] New: [C++11] Regression with empty pack expansions

2013-03-29 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56782 Bug #: 56782 Summary: [C++11] Regression with empty pack expansions Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug c++/56836] Template delegating constructor not calling target constructor

2013-04-03 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #4 from Daniel Krügler 2013-04-03 22:15:49 UTC --- I agree with Andrew: In this case the copy-constructor will be called, because the template constructor is not a better match (In C++11 template constructors can be selected for copying

[Bug c++/56868] Constexpr example in 7.1.5/5 fails to compile correctly

2013-04-07 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #6 from Daniel Krügler 2013-04-07 21:32:46 UTC --- IMO this behaviour should be considered in the light of http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#903 Assuming the P/R of this issue becomes accepted, both

[Bug c++/56874] Argument deduction failure due to non-deduced context

2013-04-08 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #3 from Daniel Krügler 2013-04-08 14:55:54 UTC --- I agree, it looks like bug 52072 to me.

[Bug c++/56889] =delete(ing) default copy and move operations for a polymorphic type gives compilation error messages

2013-04-09 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-04-09 09:10:52 UTC --- There are several problems in your example: 1) You have not declared a default constructor in template Stack, but you have provided user-declared constructors (The deleted ones). This

[Bug c++/56889] =delete(ing) default copy and move operations for a polymorphic type gives compilation error messages

2013-04-09 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56889 --- Comment #2 from Daniel Krügler 2013-04-09 09:36:29 UTC --- (In reply to comment #1) In addition I would like to remark that the precise declaration state of the inherited initializer-list constructor in vector_stack is unclear, because of h

[Bug c++/56889] =delete(ing) default copy and move operations for a polymorphic type gives compilation error messages

2013-04-09 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56889 --- Comment #5 from Daniel Krügler 2013-04-09 19:13:55 UTC --- This issue is not the right place for discussing programming idioms, but as a last comment to the code: Your reference to PL alone does not solve your programing error: You need to d

[Bug libstdc++/56905] New: [C++11][DR 1130] std::copy_exception should be removed or no longer be used

2013-04-10 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56905 Bug #: 56905 Summary: [C++11][DR 1130] std::copy_exception should be removed or no longer be used Classification: Unclassified Product: gcc Version: 4.8.0 S

[Bug libstdc++/56905] [C++11][DR 1130] std::copy_exception should be removed or no longer be used

2013-04-11 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56905 --- Comment #2 from Daniel Krügler 2013-04-11 18:05:18 UTC --- Here is my suggestion for a possible test, to be compiled with flags -std=c++11 -Wall -W -pedantic //- #define copy_exception k42; #include #include //---

[Bug c++/51577] dependent name lookup finds operator in global namespace

2013-04-13 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 --- Comment #4 from Daniel Krügler 2013-04-13 11:26:25 UTC --- (In reply to comment #3) > The example in PR 56943 gives a wrong-code example Could you explain why? It looks valid to me. According to my understanding, the free operator+ overload

[Bug c++/51577] dependent name lookup finds operator in global namespace

2013-04-13 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 --- Comment #6 from Daniel Krügler 2013-04-13 11:55:36 UTC --- (In reply to comment #5) > and G++ calls the global one, returning the wrong result, so it's wrong-code OK, I misunderstood the meaning of "wrong-code": I thought that was intended t

[Bug libstdc++/57049] std::swap does self move assignment, which is illegal

2013-04-25 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2013-04-25 09:55:47 UTC --- Here are two different things to consider: 1) The standard library specification of basic_string's move-assignment operator currently requires that it works for self-assignment:

[Bug c++/56971] GCC claims a friend function to be overloaded, but it isn't

2013-04-25 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2013-04-25 10:55:08 UTC --- For gcc 4.9.0 20130421 (experimental) this gives me an ICE: "main.cpp|8|internal compiler error: canonical types differ for identical types b and b|"

[Bug c++/56976] using braces to initialize a reference forces copy construction

2013-04-25 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-04-25 11:04:31 UTC --- It seems to me as if you are observing the core language issue http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1604

[Bug c++/55708] g++ crashes: constexpr function with reference parameters.

2013-04-26 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55708 --- Comment #1 from Daniel Krügler 2013-04-26 10:37:55 UTC --- gcc 4.9.0 20130421 (experimental) accepts the code on my system (64-bit mingw).

[Bug c++/56953] Inheriting constructors triggers instantiation of parameters at point of declaration

2013-04-26 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-04-26 19:09:43 UTC --- gcc 4.9.0 20130421 (experimental), compiled with flags -std=c++11 -Wall -pedantic-errors accepts the code as written on my system (mingw 64-bit).

[Bug c++/57092] [4.8/4.9 Regression] Using decltype of function pointer type to define a data member causes compiler crash

2013-04-27 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #2 from Daniel Krügler 2013-04-27 22:40:20 UTC --- A similar ICE occurs for gcc 4.9.0 20130421 (experimental): main.cpp|3|internal compiler error: in finish_decltype_type, at cp/semantics.c:5406|"

gcc-bugs@gcc.gnu.org

2013-05-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57172 Bug #: 57172 Summary: [C++11][DR 1164] Template overload resolution ambiguous for T&& versus T& Classification: Unclassified Product: gcc Version: 4.9.0 Sta

[Bug libstdc++/57139] std::tuple conversion constructor does the wrong checks

2013-05-06 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #3 from Daniel Krügler 2013-05-06 11:35:05 UTC --- (In reply to comment #2) > Good point. Sadly, is_convertible is not equivalent to implicit convertibility > exactly due to that additional requirement (not sure if the lat

[Bug c++/57153] [C++11] tries to use copy constructor for in-class initialized member in default constructor of template struct

2013-05-06 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-05-06 12:09:34 UTC --- I agree that the code should be accepted, because the member initializer performs direct-initialization. The very same problem also exists for gcc 4.9.0 20130428 (experimental).

[Bug c++/57176] copy elision with function arguments passed by value

2013-05-06 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-05-06 12:23:02 UTC --- Unless I'm misunderstanding your suggestion I think that a compiler is not allowed to apply copy-elision here, because that case was explicitly excluded from 12.8 p31 by http://www

[Bug c++/57176] copy elision with function arguments passed by value

2013-05-06 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57176 --- Comment #3 from Daniel Krügler 2013-05-06 13:11:15 UTC --- (In reply to comment #2) > Do you have a link to the discussion, or happen to remember the arguments? > I can see that there are more possible issues with the parameter (it lives >

[Bug c++/57196] [4.8 regression] Bogus "aggregate ... has incomplete type and cannot be defined"

2013-05-07 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2013-05-07 20:52:28 UTC --- Here a more simplified version that reproduces the problem: //--- #include template struct set { set() = default; set(std::initializer_list

[Bug libstdc++/57220] New: [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 Bug #: 57220 Summary: [mingw] Undefined reference to __mingw_strtod Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Prio

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 Daniel Krügler changed: What|Removed |Added Keywords||link-failure --- Comment #1 from Daniel

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 Daniel Krügler changed: What|Removed |Added CC||ktietz70 at googlemail dot

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 --- Comment #5 from Daniel Krügler 2013-05-08 19:56:06 UTC --- (In reply to comment #3) Thanks for the litmus test, Kay. The result output I'm getting is: MinGW-W64 Runtime 3.0 (alpha - rev. 0) -00-00 so it seems this is indeed the version

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 --- Comment #7 from Daniel Krügler 2013-05-08 20:25:44 UTC --- (In reply to comment #6) The attached '-v' '-save-temps' output indicates version 4.9.0 20130505 (experimental) (x86_64-w64-mingw32), but I'm not sure whether this is reliable in this

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 --- Comment #9 from Daniel Krügler 2013-05-08 21:41:40 UTC --- (In reply to comment #8) > Well, you should us the nm tool to check for existance of a symbol. Grepping > for strings might lead you to wrong direction. My apologies, I had seen the

[Bug libstdc++/57220] [mingw] Undefined reference to __mingw_strtod

2013-05-08 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57220 Daniel Krügler changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/54320] [c++11] range access to VLA

2013-05-10 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54320 --- Comment #13 from Daniel Krügler --- (In reply to Paolo Carlini from comment #10) FWIW, I fully agree with Jason: VLAs are very restricted and don't even allow for forming references to them, so that the standard library won't even try to provi

[Bug libstdc++/57250] New: [C++11] std::shared_ptr misses atomic_* support

2013-05-11 Thread daniel.kruegler at googlemail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com Consider this as a reminder bug entry to provide the atomic_* overloads for std::shared_ptr. A minimal test case could be: #include int main() { const std::shared_ptr p; bool

[Bug c++/57239] cannot handle inner/nested class templates with non-type parameter packs that were declared in the outer/containing class

2013-05-11 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57239 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/57250] [C++11] std::shared_ptr misses atomic_* support

2013-05-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57250 --- Comment #2 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #1) Thanks for the pointer to the status page - sorry, I didn't check it before. For the future: Does it make sense to open such reminder bugs for "not yet complete C

[Bug c++/57253] GCC ignores ref-qualifiers of pseudo-function types in explicit specializations

2013-05-12 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57253 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug libstdc++/57270] std::is_function ignores function ref-qualifiers

2013-05-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57270 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/57279] New: [C++11] alias declaration fails to declare function types with cv-qualifiers

2013-05-14 Thread daniel.kruegler at googlemail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.kruegler at googlemail dot com The following code is rejected if compiled with gcc 4.9.0 20130505 (experimental) using the flags -std=c++11 -Wall -pedantic-errors

[Bug c++/54198] [4.8 Regression] "error: invalid use of incomplete type" when building Chromium

2012-08-12 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #3 from Daniel Krügler 2012-08-12 22:58:09 UTC --- (In reply to comment #2) > I actually think GCC is correct, A causes all member functions to be > instantiated. I disagree, the instantiation of A shall only instantiate all

[Bug c++/54235] Templates compile but don't link

2012-08-12 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2012-08-12 23:25:51 UTC --- The problem still exists in gcc 4.8 trunk

[Bug libstdc++/54249] New: [C++11] No ::nullptr_t in header

2012-08-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249 Bug #: 54249 Summary: [C++11] No ::nullptr_t in header Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/54249] [C++11] No ::nullptr_t in header

2012-08-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249 Daniel Krügler changed: What|Removed |Added Keywords||rejects-valid --- Comment #1 from Daniel

[Bug libstdc++/54249] [C++11] No ::nullptr_t in header

2012-08-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249 --- Comment #3 from Daniel Krügler 2012-08-14 09:52:30 UTC --- (In reply to comment #2) > (In reply to comment #0) > > "Every C header, each of which has a name of the form name.h, behaves as if > > each name placed in the standard library namesp

[Bug libstdc++/54249] [C++11] No ::nullptr_t in header

2012-08-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249 --- Comment #11 from Daniel Krügler 2012-08-14 11:01:47 UTC --- (In reply to comment #9) > I must also add that frankly personally I don't consider these issues so > serious: IMHO a new C++ project should immediately use the c* headers. I see > t

[Bug libstdc++/54249] [C++11] No ::nullptr_t in header

2012-08-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249 Daniel Krügler changed: What|Removed |Added Severity|normal |minor

[Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas

2012-08-15 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2012-08-15 21:15:16 UTC --- The problem still exists in gcc 4.8.trunk. Version 4.8.0 20120729 (experimental) delivers: 7|internal compiler error: vector VEC(tree,base) index domain error, in insert_capture_proxy at

[Bug c++/54276] Lambda in a Template Function Undefined Reference to local static

2012-08-15 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2012-08-16 06:20:47 UTC --- The problem seems to be fixed in gcc 4.8.0 20120729 (experimental)

[Bug c++/54277] Template class member referred to with implicit this inside lambda is incorrectly const-qualified

2012-08-15 Thread daniel.kruegler at googlemail dot com
||googlemail dot com --- Comment #1 from Daniel Krügler 2012-08-16 06:24:26 UTC --- The problem still exists in gcc 4.8.0 20120729 (experimental)

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289 --- Comment #2 from Daniel Krügler 2012-08-16 19:38:16 UTC --- The problem seems still to exist in gcc 4.8.0 20120729 (experimental). Just to be sure that this is not due to a badly formed error description I tested to compile the folowing code

  1   2   3   4   5   6   7   8   9   >