[Bug libstdc++/63176] std::generate_canonical<float, std::numeric_limits::digits>() generates 1.0f

2015-10-09 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63176 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #3 from TC

[Bug c++/67829] New: Bogus "ambiguous template instantiation" error with partial specializations involving a template template parameter

2015-10-02 Thread rs2740 at gmail dot com
Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- Repro: template class Purr { }; template<template class,

[Bug c++/67633] New: decltype on parenthesized class member access of a prvalue sometimes return wrong results

2015-09-18 Thread rs2740 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- Per the resolution of CWG 616, given struct A { double x; };, decltype((A().x)) should be double&&.

[Bug c++/56701] [C++11] The *this* pointer fails to bind to rvalue reference to pointer type

2015-09-04 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56701 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #3 from TC

[Bug libstdc++/66624] libstdc++ iostream uninitialized data

2015-09-01 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66624 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #5 from TC

[Bug c++/67200] New: Copy elision and implicit move in return performed in cases not allowed by standard

2015-08-12 Thread rs2740 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- Consider: struct A { A() = default; A(const A) = delete; A(A) = default; }; A f() { A a; return true

[Bug c++/66990] New: Wrong diagnostics when template being specialized is ambiguous

2015-07-24 Thread rs2740 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- Consider: namespace A { inline namespace B { templateclass struct C; } templateclass struct C; template struct Cint{}; } Lookup

[Bug c++/66990] Wrong diagnostics when template being specialized is ambiguous

2015-07-24 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66990 TC rs2740 at gmail dot com changed: What|Removed |Added Keywords||diagnostic --- Comment #1

[Bug c++/66548] New: Invalid class member access expression in decltype sometimes accepted

2015-06-15 Thread rs2740 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- The following code is accepted by GCC 5.1 and 6.0.0 20150615 (experimental), even though it is plainly invalid: struct Meow {}; int

[Bug c++/66548] Invalid class member access expression in decltype sometimes accepted

2015-06-15 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66548 --- Comment #1 from TC rs2740 at gmail dot com --- See also http://stackoverflow.com/q/30856911/2756719

[Bug c++/66350] typename should be forbidden in inhering constructors

2015-06-04 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66350 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug libstdc++/54351] ~unique_ptr() should not set stored pointer to null

2015-05-27 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54351 --- Comment #14 from TC rs2740 at gmail dot com --- Well, I would have argued that if the specification doesn't say that a function does X, then it doesn't do X. NullablePointer/CopyAssignable only means that the assignment operation must

[Bug libstdc++/54351] ~unique_ptr() should not set stored pointer to null

2015-05-26 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54351 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug c++/66109] defining constexpr objects without initializer

2015-05-11 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66109 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug libstdc++/65631] New: seed_seq should not be copyable

2015-03-30 Thread rs2740 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com From http://stackoverflow.com/q/29350040/2756719, repro: #include random int main(int, char **) { std::seed_seq seed1{1337, 42}; std::seed_seq seed2(seed1); std::seed_seq seed3 = seed2; return 0; } Per

[Bug libstdc++/65543] New: rvalue stream insertion and extraction operators incorrectly implemented

2015-03-24 Thread rs2740 at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Repro: #include iostream #include sstream struct A{}; void operator(std::ostream , A const ){ } void operator(std::istream , A ){ } int main

[Bug libstdc++/65543] rvalue stream insertion and extraction operators incorrectly implemented

2015-03-24 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65543 --- Comment #1 from TC rs2740 at gmail dot com --- (In reply to TC from comment #0) which breaks if the operator called does not return a reference stream. A similar issue affects operator for rvalue streams. I meant a reference to the stream.

[Bug c++/65520] New: elaborated-type-specifiers and inaccessible injected-class-names

2015-03-22 Thread rs2740 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Repro: struct A {}; struct B : private A {}; struct C : public B { struct A m_a; // error: A is the inaccessible injected-class-name }; Per [basic.lookup.elab

[Bug c++/62116] Allowing redeclaration of global variable x using ::x

2015-03-14 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62116 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug libstdc++/65352] arrayT,0::begin()/end() etc. forms a null reference and breaks on clang+ubsan

2015-03-12 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65352 --- Comment #3 from TC rs2740 at gmail dot com --- Depends on how http://cplusplus.github.io/LWG/lwg-active.html#2443 comes out in LEWG, it might be a good idea to go with a solution that maintains the `constexpr`-ness so that it doesn't have

[Bug c++/65415] New: using, base class static member function template, and decltype

2015-03-12 Thread rs2740 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com From http://stackoverflow.com/questions/29013260. Minimized repro: struct default_check { templatetypename U static int check(...); }; struct is_addable

[Bug libstdc++/65352] New: arrayT,0::begin()/end() etc. forms a null reference and breaks on clang+ubsan

2015-03-08 Thread rs2740 at gmail dot com
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Repro: #include array int main(){ std::arrayint, 0 foo; foo.begin(); // or end(), etc. } Output (http://coliru.stacked-crooked.com

[Bug libstdc++/65092] New: Container adaptors missing allocator-extended constructors

2015-02-17 Thread rs2740 at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com The allocator-extended constructors of std::stack, std::queue and std::priority_queue are missing.

[Bug c++/64969] New: generic functions do not work with placeholder return types

2015-02-07 Thread rs2740 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com GCC 4.9 added generic functions based on the draft Concepts Lite TS N3889. (They now called abbreviated function templates.) However, the implementation does not work

[Bug libstdc++/64865] std::allocator::construct/destroy not called for specialization of std::allocatortrivialtype

2015-01-30 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64865 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug c++/64679] New: Spurious redefinition error when parsing not-quite-most-vexing-parse declarations

2015-01-19 Thread rs2740 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Repro: class Bar{ public: Bar(int, int, int); }; int main () { int x = 1; Bar bar(int(x), int(x), int{x}); } gcc HEAD 5.0.0 20150119

[Bug c++/63217] New: template conversion operator returning const reference not used for conversion in some cases

2014-09-10 Thread rs2740 at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Minimized repro: struct foo { templateclass T operator const T () { static T t {}; return t;} }; int main() { int t((foo

[Bug c++/62110] Attempting to use template conversion operator in a contextual conversion

2014-08-12 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62110 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-24 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

[Bug c++/60009] g++ allows copy-initialization of an array of class type from a non-braced string literal

2014-06-24 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60009 TC rs2740 at gmail dot com changed: What|Removed |Added CC||rs2740 at gmail dot com

<    1   2   3