[Bug c++/32039] Using declaration accepts non-visible members from base classes

2015-01-10 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32039 Ville Voutilainen changed: What|Removed |Added Status|RESOLVED|NEW Resolution|INVALID

[Bug c++/32039] Using declaration accepts non-visible members from base classes

2015-01-10 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32039 --- Comment #10 from Ville Voutilainen --- Ok, this is http://open-std.org/JTC1/SC22/WG21/docs/cwg_closed.html#1960 which says "The rule was introduced because the hiding of a base class member by an intermediate derived class is potentially int

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

2015-01-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64356 Ville Voutilainen changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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

2015-01-12 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-01-12 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/64514] Error in template instantiation in GCC 4.9, works fine in GCC 4.8

2015-01-12 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-01-12 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.9.1, 5.0

[Bug c++/64574] ICE (stack overflow SEGV) with bad template specialization

2015-01-13 Thread ville.voutilainen at gmail dot com
Status|UNCONFIRMED |NEW Last reconfirmed||2015-01-13 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/57854] Would like to have a warning for virtual overrides without C++11 "override" keyword

2015-01-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854 --- Comment #5 from Ville Voutilainen --- It seems to me that https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219213 implements the desired functionality. Can we close this bug?

[Bug tree-optimization/59354] [4.8/4.9/5 Regression] Element swizzling produces invalid result with -O3

2015-01-14 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59354 --- Comment #10 from Ville Voutilainen --- (In reply to Jakub Jelinek from comment #9) > I can reproduce it even with r219580. Likewise. People, remember to use -O3 when reproducing.

[Bug c++/64603] [5 Regression] bogus error "no matching function for call to ..." with templates

2015-01-14 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-01-14 CC||ville.voutilainen at gmail dot com Known to work||4.7.3, 4.8.2, 4.9.1 Ever confirmed|0 |1

[Bug c++/51747] [DR 1467] [C++11] cannot call defaulted copy constructor using list-initialization

2015-01-16 Thread ville.voutilainen at gmail dot com
||ville.voutilainen at gmail dot com Resolution|FIXED |--- --- Comment #8 from Ville Voutilainen --- This case fails: struct base { }; struct derived : base { derived(const base &state) : base{state} // Gcc, Clang, and EDG re

[Bug c++/64647] [5 Regression] [C++14] std::__max_element contains code not allowed in constexpr function

2015-01-17 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64647 Ville Voutilainen changed: What|Removed |Added CC||jason at redhat dot com Com

[Bug libstdc++/64656] [C++14] DR 2128 Absence of global functions cbegin/cend

2015-01-18 Thread ville.voutilainen at gmail dot com
||2015-01-18 CC||ville.voutilainen at gmail dot com Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen

[Bug c++/59366] A friend function template defined in a class is found without ADL

2015-01-22 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59366 Ville Voutilainen changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/51747] [DR 1467] [C++11] cannot call defaulted copy constructor using list-initialization

2015-01-25 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51747 --- Comment #10 from Ville Voutilainen --- This code fails with the current trunk: struct B {}; struct D : B {D(B b) : B{b} {}}; base-aggr-init.cpp: In constructor ‘D::D(B)’: base-aggr-init.cpp:2:27: error: too many initializers for ‘B’ struc

[Bug c++/51747] [DR 1467] [C++11] cannot call defaulted copy constructor using list-initialization

2015-01-25 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51747 --- Comment #11 from Ville Voutilainen --- Also, struct base { int x; }; struct derived : base { derived(const base &state) : base{state} {} }; is diagnosed with base-aggr-init2.cpp: In constructor ‘derived::derived(const

[Bug c++/64816] gcc claims that constructor is private when it should be accessible

2015-01-27 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-01-27 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-27 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-01-27 CC||paolo.carlini at oracle dot com, ||ville.voutilainen at gmail dot com Known to work

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-27 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #4 from Ville Voutilainen --- Oh, wait a minute, with trunk, I see an incorrect warning: prog.cc: In function 'int main()': prog.cc:7:15: warning: variable 'a' set but not used [-Wunused-but-set-variable] const int a = 2;

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-31 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #6 from Ville Voutilainen --- I ran it with this thing: http://melpon.org/wandbox/permlink/gAsh89NaSSFspYjq

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-02-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #9 from Ville Voutilainen --- I can't see any warnings with my trunk build from today, either.

[Bug c++/64848] G++ internal compiler error with templated lambdas capturing variable

2015-02-02 Thread ville.voutilainen at gmail dot com
Status|UNCONFIRMED |NEW Last reconfirmed||2015-02-02 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/64842] Implicitly defined constructor isn't constexpr

2015-02-02 Thread ville.voutilainen at gmail dot com
||ville.voutilainen at gmail dot com Resolution|--- |INVALID --- Comment #1 from Ville Voutilainen --- The constructors for Point are constexpr, but since p2 is not, passing it as an argument for scale() means that the invocation of scale

[Bug c++/64901] C++11 regression, overriding final function defined out of line does not lead to an error

2015-02-02 Thread ville.voutilainen at gmail dot com
||4.8.2 Keywords||accepts-invalid Last reconfirmed||2015-02-02 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64901] [4.9/5 Regression] overriding final function defined out of line does not lead to an error

2015-02-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64901 Ville Voutilainen changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail

[Bug c++/64970] Hard error instead of SFINAE for expression in nested template alias

2015-02-08 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-02-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/64959] SFINAE in UDLs

2015-02-08 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-02-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/65080] constexpr-ness lost by using alias in definition

2015-02-16 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2015-02-16 CC||paolo.carlini at oracle dot com, ||ville.voutilainen at gmail dot com Known to work

[Bug c++/65094] New: An initializer_list cannot be copied with brace syntax

2015-02-17 Thread ville.voutilainen at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com #include template void copy_it(T t) { T t2{t}; // #1 } int main() { std::initializer_list x{1,2,3}; std::initializer_list y{x}; // #2

[Bug c++/58910] std::Tuple_impl is non constexpr when using identical userdefined structs as template-args

2015-02-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58910 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/64842] Implicitly defined constructor isn't constexpr

2015-02-25 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64842 --- Comment #3 from Ville Voutilainen --- Email sent to Bjarne.

[Bug c++/64171] Hang whilst printing error message on invalid code

2015-03-04 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64171 --- Comment #3 from Ville Voutilainen --- (In reply to Paolo Carlini from comment #2) > Today I can't reproduce the issue in mainline. Ville, can you double check? Works fine for me on current trunk, no ICE, no hang.

[Bug c++/64227] Forwarding an argument of a function template to a generic lambda causes a compiler crash

2015-03-04 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64227 --- Comment #3 from Ville Voutilainen --- (In reply to Paolo Carlini from comment #2) > I guess we should resolve this one as fixed and re-open c++/64085, which > still ICEs for me. Agreed? Yes, this bug doesn't reproduce anymore, whereas 64085

[Bug c++/62274] [C++11] Variadic templates expansion into non-variadic class template

2015-03-04 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62274 --- Comment #4 from Ville Voutilainen --- (In reply to juchem from comment #3) > Clang does accept this code: http://goo.gl/YKBt2l Clang 3.3 and 3.4 do, yes. 3.5, 3.6 and their trunk don't.

[Bug libstdc++/63860] Ill-formed std::pair::swap implementation?

2015-03-05 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63860 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/55588] Failure to diagnose non-template-id prefixed by keyword template

2013-10-20 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/58761] ICE with a lambda capturing this in a NSDMI

2013-10-21 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58761 --- Comment #2 from Ville Voutilainen --- Reduced: template struct X { int x = 42; int y = [this](){return this->x;}(); }; int main() { X x; } Seems to require a template to trigger, but from that point onwards, it's quite easy to trigg

[Bug c++/58753] Brace-initializing a vector with a direct-initialization NSDMI doesn't work in a template

2013-10-21 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58753 --- Comment #8 from Ville Voutilainen --- Slightly reduced, I guess... #include template struct X {X(std::initializer_list) {}}; template class T { X x{1}; }; int main() { T t; } This gives plaatti-reduced2.cpp: In constructor ‘

[Bug c++/58896] New: Incorrect handling of a private nested type of a template specialization in the main template

2013-10-27 Thread ville.voutilainen at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com This code compiles without any problem: template class Obj; template<> class Obj { struct secret{}; }; template

[Bug c++/59366] New: A friend function template defined in a class is found without ADL

2013-12-02 Thread ville.voutilainen at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Reduced test: struct X { //friend void f(int) {} // #1 template friend void f(T) {} // #2 }; int main() { f(5); // #3 } The function in

[Bug c++/59416] New: A nested template reusing the template arguments of the enclosing type in a template template argument not working

2013-12-07 Thread ville.voutilainen at gmail dot com
: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test: template struct Obj; template struct A { template class> struc

[Bug c++/59457] name mangling in presence of variadic templates seems wrong

2013-12-10 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59457 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/59481] New: late-specified return type using a parameter pack doesn't work with a recursive function template

2013-12-12 Thread ville.voutilainen at gmail dot com
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test snippet: template int func (T) { return 0; } template auto func (T t, Ts... ts) -> decltype (

[Bug c++/59482] New: A friend class cannot inherit a private class

2013-12-12 Thread ville.voutilainen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test: struct aa { friend struct cc; private: struct bb {}; }; struct cc : aa::bb {}; Output: ville.cpp:1:47: error: ‘struct aa::bb’ is private struct aa { friend struct cc

[Bug c++/59483] New: A nested lambda fails to find a protected name with qualified name

2013-12-12 Thread ville.voutilainen at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test: struct X { protected: int i; }; struct Y: X { void f() { [&]{ X::i = 3; }(); } // #1 }; Output: eelis.cpp: In lambda func

[Bug c++/59482] A friend class cannot inherit a private nested class

2013-12-12 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59482 --- Comment #1 from Ville Voutilainen --- A friend function can access the private class, thus void f(); struct B { friend void f(); private: struct C {};}; void f() { struct D : B::C{}; } Some analysis follows: I investigated t

[Bug c++/59676] New: Non-integral glvalues accepted in constant expressions

2014-01-04 Thread ville.voutilainen at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com constexpr int foo(float f) {return int(f);} int main() { const float x = 0.5; static_assert(x > 0.1, "all good"); // #1 constexpr int i = foo(x); // #2 }

[Bug c++/59686] New: Non-constexpr pointers accepted in constant expressions

2014-01-05 Thread ville.voutilainen at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com int main { static const int x = 5; const int * const y = &x; static_assert(y, ""); } clang rejects this, gcc accepts.

[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2014-01-05 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 --- Comment #1 from Ville Voutilainen --- (In reply to Ville Voutilainen from comment #0) > int main > { > static const int x = 5; > const int * const y = &x; > static_assert(y, ""); > } > > clang rejects this, gcc accepts. well, typ

[Bug c++/59702] Infinite recursion in a late-specified return type of a function template

2014-01-06 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59702 --- Comment #1 from Ville Voutilainen --- I forgot to mention that clang accepts the code.

[Bug c++/59702] New: Infinite recursion in a late-specified return type of a function template

2014-01-06 Thread ville.voutilainen at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com struct A {}; template int func (A) { return {}; } template auto func () -> decltype (func (A{})) { return {}; } int main (int argc, c

[Bug c++/59701] New: A variadic alias template aliasing another variadic alias template doesn't work

2014-01-06 Thread ville.voutilainen at gmail dot com
erity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com template struct foo { }; template using bar = foo; template using baz = bar; int main (int argc, char *argv[]) { } This gives ed

[Bug c++/59701] A variadic alias template aliasing another variadic alias template doesn't work

2014-01-10 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59701 --- Comment #1 from Ville Voutilainen --- The testcase caused an ICE in recent versions of clang, and was fixed so that the code is rejected by clang. This is related to Core Issue 1430, so the bug should probably be on hold until CWG decides the

[Bug c++/63362] New: The c++11 triviality-traits need front-end help

2014-09-24 Thread ville.voutilainen at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com CC: jason at redhat dot com Jason wrote in a private email: "I think what we need is a compiler hook to say whether a particular expre

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-09-25 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #3 from Ville Voutilainen --- Looks good so far. I think this is a sufficient start for implementing the library traits. Does the patch cover template cases as well? Such as struct B {B();}; template struct C : T { }; SA(__calls_n

[Bug libstdc++/60132] C++11: lack of is_trivially_copy_constructible

2014-10-01 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60132 Ville Voutilainen changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail

[Bug libstdc++/60132] C++11: lack of is_trivially_copy_constructible

2014-10-01 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60132 Ville Voutilainen changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 Ville Voutilainen changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #10 from Ville Voutilainen --- Reduced: template struct bool_ { }; template struct mytrait : bool_<__is_trivially_constructible(T, Args...)> { } trivial_trait2.cpp:7:64: internal compiler error: tree check: expected class ‘type’

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #13 from Ville Voutilainen --- Hmm. The first of the two ICE tests still ICEs. It no longer stops my build, though - and I don't quite understand why, because previously the build ICEd when building the library pre-compiled headers.

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #15 from Ville Voutilainen --- (In reply to Jason Merrill from comment #14) > (In reply to Ville Voutilainen from comment #13) > > Hmm. The first of the two ICE tests still ICEs. > > Which test? None of the tests are ICEing for me.

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #16 from Ville Voutilainen --- (In reply to Ville Voutilainen from comment #15) > (In reply to Jason Merrill from comment #14) > > (In reply to Ville Voutilainen from comment #13) > > > Hmm. The first of the two ICE tests still ICEs.

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #18 from Ville Voutilainen --- (In reply to Jason Merrill from comment #17) > (In reply to Ville Voutilainen from comment #16) > > > This one: > > > > > > #include > > > > > > template > > > struct mytrait : public std::__and_, >

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #20 from Ville Voutilainen --- (In reply to Jason Merrill from comment #19) > (In reply to Ville Voutilainen from comment #18) > > to work just fine. Yet this particular test will not work with my > > modifications, but works without

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #22 from Ville Voutilainen --- Created attachment 33664 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33664&action=edit Preprocessed source for is_trivially_copy_constructible tests This test fails the static_assert for TType

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #24 from Ville Voutilainen --- (In reply to Jason Merrill from comment #23) > (In reply to Ville Voutilainen from comment #22) > > This test fails the static_assert for TType (which is a trivial type), > > PODType and DelDef, and it w

[Bug c++/63362] The c++11 triviality-traits need front-end help

2014-10-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63362 --- Comment #26 from Ville Voutilainen --- (In reply to Jason Merrill from comment #25) > And the ICE reduces to > > struct A { > A(...); > }; > > int main() > { > volatile A a; > volatile A a2(a); > } > > which crashes from infinite rec

[Bug c++/63528] New: A variadic variable template cannot use the ::value of a variadic trait

2014-10-13 Thread ville.voutilainen at gmail dot com
-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com CC: jason at redhat dot com Created attachment 33702 --> https://gcc.gnu.org/bugzi

[Bug c++/58972] Lambda can't access private members

2014-11-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 Ville Voutilainen changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/58972] Lambda can't access private members

2014-11-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 --- Comment #9 from Ville Voutilainen --- (In reply to Ville Voutilainen from comment #8) > Does not ICE anymore, and the original bug has been resolved (Daniel's local > class example is still rejected). I don't know which revision fixes it, > t

[Bug c++/58972] Lambda can't access private members

2014-11-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 Ville Voutilainen changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail

[Bug c++/63925] New: ICE with C++14 constexpr when trying to constexprify std::min

2014-11-17 Thread ville.voutilainen at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com CC: jason at redhat dot com Test snippet: #include struct _Iter_less_iter { template constexpr bool

[Bug c++/57979] G++ accepts constant expression defined using floating point non-constexpr glvalue

2014-11-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57979 --- Comment #5 from Ville Voutilainen --- I think this should be put on hold, since EWG told CWG in Rapperswil that const floats should perform the same magic as const ints do, see http://open-std.org/JTC1/SC22/WG21/docs/cwg_closed.html#1826 whic

[Bug c++/57979] G++ accepts constant expression defined using floating point non-constexpr glvalue

2014-11-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57979 --- Comment #6 from Ville Voutilainen --- In other words, EWG wants the standard to be changed so that GCC's behavior actually becomes conforming, as far as I understand the intent.

[Bug c++/63959] G++ misreports volatile int as trivially copyable

2014-11-19 Thread ville.voutilainen at gmail dot com
||2014-11-19 CC||ville.voutilainen at gmail dot com Component|libstdc++ |c++ Ever confirmed|0 |1

[Bug c++/63959] G++ misreports volatile int as trivially copyable

2014-11-19 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63959 Ville Voutilainen changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail

[Bug c++/63999] Explcit conversion operators are not considered for explicit cast using brace

2014-11-20 Thread ville.voutilainen at gmail dot com
||2014-11-20 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen --- Same result if all the bools are changed to ints. clang accepts the code.

[Bug c++/12277] Warn on dynamic casts with known NULL results.

2014-11-28 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12277 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/64100] New: A static assert using the the current class in a noexcept test leads to a segfault

2014-11-28 Thread ville.voutilainen at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com template struct foo { static_assert(noexcept(((foo *)1)->~foo()), ""); }; template class foo; Clang diagnoses t

[Bug c++/58107] missing destructor call after thrown exception in lambda capture

2014-12-01 Thread ville.voutilainen at gmail dot com
||2014-12-01 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen --- Still happens with the gcc5 trunk.

[Bug c++/64227] New: Forwarding an argument of a function template to a generic lambda causes a compiler crash

2014-12-08 Thread ville.voutilainen at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com CC: jason at redhat dot com The problem occurs with forward and move, but not with a static_cast(t). #include

[Bug c++/61754] [C++1y] [[deprecated]] attribute warns annoyingly compared to __attribute__((deprecated))

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail|4.10.0 |5.0

[Bug c++/64194] [C++14] for function template with auto return

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64178] rejects-valid on variadic operator++

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64169] Partial template specialization of reference-qualified operator templates

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64171] Hang whilst printing error message on invalid code

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen --- The test ICEs on trunk: [ville@localhost ~]$ g++ --std=c++1y -c 64171.cpp 64171.cpp:12:31

[Bug c++/62212] ICE compiling template function with array reference parameter whose size depends on a template parameter

2014-12-08 Thread ville.voutilainen at gmail dot com
Status|UNCONFIRMED |NEW Last reconfirmed||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/60372] incorrect destruction order for function parameter objects

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #2 from Ville Voutilainen --- Let's suspend the bug while the Core issue is in progress, then.

[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64073] Explicit duplicate template instantiation not reported as error when using 'using'

2014-12-08 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/63996] Infinite loop in invalid C++14 constexpr fn

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/61971] array subscript is above array bounds [-Werror=array-bounds]

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Known to work||4.8.2, 5.0 Ever confirmed|0 |1 Known to fail||4.9.0, 4.9.1

[Bug c++/63809] Missing warning on extra template

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/61022] [C++11] Bogus "error: parameter packs not expanded with '...'"

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/63578] ICE with may_alias and auto

2014-12-08 Thread ville.voutilainen at gmail dot com
||2014-12-08 CC||ville.voutilainen at gmail dot com Version|unknown |4.8.2 Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/58969] bogus error: the value of 'kName' is not usable in a constant expression

2014-12-10 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-10 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64000] internal compiler error on lambda that captures 2-dimensional variable size array by reference

2014-12-10 Thread ville.voutilainen at gmail dot com
||2014-12-10 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #1 from Ville Voutilainen --- A reduced testcase would be nice.

[Bug c++/64002] Braced initialization of unknown bound array of nondependent type

2014-12-10 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-10 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1

[Bug c++/64261] false branch of conditional operator ?: evaluated in a template constexpr

2014-12-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64261 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/63707] Brace initialization of array sometimes fails if no copy constructor

2014-12-12 Thread ville.voutilainen at gmail dot com
||2014-12-12 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0

[Bug c++/63604] [C++11] A direct-initialization of a reference should use explicit conversion functions

2014-12-12 Thread ville.voutilainen at gmail dot com
||ville.voutilainen at gmail dot com Known to fail||4.8.2, 4.9.1, 5.0 --- Comment #1 from Ville Voutilainen --- Clang accepts the code.

<    1   2   3   4   5   6   >