[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 ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[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 ville.voutilainen at gmail dot com --- Reduced: template class T struct X { int x = 42; int y = [this](){return this-x;}(); }; int main() { Xint x; } Seems to require a template to trigger, but from

[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 ville.voutilainen at gmail dot com --- Slightly reduced, I guess... #include initializer_list template class T struct X {X(std::initializer_listint) {}}; template class zomg class T { XT x{1}; }; int

[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: templatetypename class Obj; template class Objvoid { struct secret

[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 class T friend void f(T) {} // #2 }; int main() { f(5); // #3

[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: templateint,int struct Obj; templatetypename... Ts struct

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[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
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test snippet: templatetypename T int func (T) { return 0; } templatetypename T, typename... Ts auto func (T t, Ts... ts

[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 function

[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 ville.voutilainen at gmail dot com --- 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

[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 } gcc accepts

[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 ville.voutilainen at gmail dot com --- (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

[Bug c++/61856] New: Ternary operator in an NSDMI causes double evaluation

2014-07-20 Thread ville.voutilainen at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com First test: #include iostream #ifdef OK struct ostream { } cout; bool operator(ostream, const char* s) { __builtin_printf(%s, s); return true; } #else using std::cout; #endif

[Bug c++/61857] New: An init-capturing lambda is parsed incorrectly when used in a braced-init-list

2014-07-20 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 { A(int val){} }; int main() { A a{ [x=123]{ return x; }() }; } init-capture2.cpp: In function ‘int main()’: init

[Bug c++/62101] New: deleted definitions of friend functions are rejected

2014-08-11 Thread ville.voutilainen at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test: struct X { friend void f(X, int) = delete; friend void f(X, double) {} }; struct Y; void g(Y, int); void g(Y, double); struct Y { friend void g(Y, int) = delete

[Bug c++/62172] Operand to a throw expression is moved when it should be copied

2014-08-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62172 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/62172] Operand to a throw expression is moved when it should be copied

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

[Bug c++/57533] When throwing local variable, it's being move-constructed even if not going out of scope.

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

[Bug c++/63201] New: Full specialization of a member variable template of a class template does not work

2014-09-07 Thread ville.voutilainen at gmail dot com
Keywords: rejects-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 Simple case: template class T struct Y { template class

[Bug c++/63201] Full specialization of a member variable template of a class template does not work

2014-09-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63201 --- Comment #1 from Ville Voutilainen ville.voutilainen at gmail dot com --- Created attachment 33458 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33458action=edit Additional specialization tests for variable templates

[Bug c++/63201] Full specialization of a member variable template of a class template does not work

2014-09-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63201 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/61133] g++ doesn't implement DR1760

2014-09-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61133 --- Comment #4 from Ville Voutilainen ville.voutilainen at gmail dot com --- Yep, done.

[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 expression

[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 ville.voutilainen at gmail dot com --- 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

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Status|NEW

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Status|RESOLVED

[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 ville.voutilainen at gmail dot com --- Reduced: template bool b struct bool_ { }; template typename T, class... Args struct mytrait : bool___is_trivially_constructible(T, Args...) { } trivial_trait2.cpp

[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 ville.voutilainen at gmail dot com --- 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

[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 ville.voutilainen at gmail dot com --- (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

[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 ville.voutilainen at gmail dot com --- (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

[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 ville.voutilainen at gmail dot com --- (In reply to Jason Merrill from comment #17) (In reply to Ville Voutilainen from comment #16) This one: #include type_traits template typename T

[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 ville.voutilainen at gmail dot com --- (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

[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 ville.voutilainen at gmail dot com --- Created attachment 33664 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33664action=edit Preprocessed source for is_trivially_copy_constructible tests This test

[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 ville.voutilainen at gmail dot com --- (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

[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 ville.voutilainen at gmail dot com --- (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

[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/bugzilla

[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 ville.voutilainen at gmail dot com --- 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 {}; templatetypename int func (A) { return {}; } templatetypename T auto func () - decltype (funcT (A{})) { return {}; } int main

[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
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com templatetypename... Args struct foo { }; templatetypename T, typename... Args using bar = fooT, Args...; templatetypename T, typename

[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 ville.voutilainen at gmail dot com --- 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

[Bug c++/59838] New: ICE with an enum using an incomplete type

2014-01-15 Thread ville.voutilainen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Very simple test: enum E { a, b = true ? 1 : ((E)a, 0) }; enumcrash.cpp:1:32: internal compiler error: Segmentation fault enum E { a, b = true ? 1 : ((E)a, 0

[Bug c++/59838] ICE with an enum using an incomplete type

2014-01-17 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59838 --- Comment #3 from Ville Voutilainen ville.voutilainen at gmail dot com --- Ok, but the patch needs to be massaged a bit to give an error in the case where the underlying type is not set, if the complain flag has error set. I can do that, seems

[Bug c++/59838] ICE with an enum using an incomplete type

2014-01-17 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59838 --- Comment #5 from Ville Voutilainen ville.voutilainen at gmail dot com --- Ah, of course, it will end up returning error_mark_node and then other machinery reports the error. Ok, looks quite good. Can you post it to gcc-patches, then?

[Bug c++/59914] New: A variadic function template that forwards to a multi-pack variadic template causes an infinite loop

2014-01-23 Thread ville.voutilainen at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com template class T, class... U void f(T t, int i, U... u) {} template class... T void g(T... t) {g(t..., 5, t

[Bug c++/50025] [DR 1288] C++0x initialization syntax doesn't work for class members of reference type

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

[Bug c++/60708] New: An array temporary causes an ICE in gimplify

2014-03-30 Thread ville.voutilainen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Test: template class T, class U struct mypair { mypair(T, U) {} }; template class T, class U auto my_make_pair(T t, U u) { return mypairT, U(t, u); } templatetypename T struct S

[Bug c++/60708] [4.8/4.9 Regression] An array temporary causes an ICE in gimplify

2014-03-31 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60708 --- Comment #2 from Ville Voutilainen ville.voutilainen at gmail dot com --- Well, no - the error that 4.7 gives is caused by my using a C++14 deduced return type for a function there. 4.9 supports those with --std=c++1y.

[Bug c++/60708] [4.8/4.9 Regression] An array temporary causes an ICE in gimplify

2014-03-31 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60708 --- Comment #3 from Ville Voutilainen ville.voutilainen at gmail dot com --- So, to clarify, this is not accepts-invalid, nor is it a 4.7-4.9 regression with regards to whether the function should be accepted. If I change the test to be purely C

[Bug c++/51424] [C++11] G++ should diagnose self-delegating constructors

2014-04-22 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51424 --- Comment #5 from Ville Voutilainen ville.voutilainen at gmail dot com --- (In reply to Jakub Jelinek from comment #4) GCC 4.9.0 has been released Well, shouldn't this bug be closed, then? The patch Paolo wrote was applied and shipped in 4.9.0

[Bug c++/51424] [C++11] G++ should diagnose self-delegating constructors

2014-04-28 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51424 --- Comment #8 from Ville Voutilainen ville.voutilainen at gmail dot com --- My 2 cents is to open a separate bug if we want diagnostics for the more elaborate self-delegating cases.

[Bug c++/51501] [DR 1433] decltype over-agressive SFINAE

2014-05-08 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51501 --- Comment #10 from Ville Voutilainen ville.voutilainen at gmail dot com --- (In reply to Jason Merrill from comment #9) Ville, has EWG taken a look at this issue? I'm sorry this didn't come up in Not yet. The handling of Extension-status Core

[Bug c++/61133] New: g++ doesn't implement DR1760

2014-05-09 Thread ville.voutilainen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com Testcase: int main() { auto x = [y = 5](){}; auto z = x.y; } The member should not be usable. The most recent WP says An init-capture behaves as if it declares and explicitly captures a variable

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

2014-05-15 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58753 --- Comment #11 from Ville Voutilainen ville.voutilainen at gmail dot com --- (In reply to Paolo Carlini from comment #10) Looks somewhat similar, but not identical. In this particular bug it doesn't seem to be a case of explicitness being

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

2014-05-15 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58753 --- Comment #13 from Ville Voutilainen ville.voutilainen at gmail dot com --- (In reply to Paolo Carlini from comment #12) Ah, indeed, comment 2 has an explicit diagnostic as well. The patch looks reasonable (to my taste the condition doesn't

[Bug c++/61133] g++ doesn't implement DR1760

2014-05-19 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61133 --- Comment #1 from Ville Voutilainen ville.voutilainen at gmail dot com --- Patch is in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00656.html

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

2014-06-03 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59483 --- Comment #2 from Ville Voutilainen ville.voutilainen at gmail dot com --- It seems that 58972 is a duplicate, and is fixed by the same patch.

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

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

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

2014-06-03 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 --- Comment #3 from Ville Voutilainen ville.voutilainen at gmail dot com --- [ville@localhost ~]$ g++ --std=c++11 -c dan.cpp dan.cpp: In instantiation of ‘struct deriveT::foo(base::type) [with T = char; base::type = int]::f_t’: dan.cpp:18:5

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

2014-06-04 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59483 --- Comment #3 from Ville Voutilainen ville.voutilainen at gmail dot com --- So, correction, the original testcase in 58972 is fixed by this patch, but the other testcase in it ICEs the compiler. That testcase is not really related to the issue

[Bug c++/61491] New: An explicit specialization of a member enumeration of a class template is rejected

2014-06-12 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 #include iostream template class D struct Base { enum class E : unsigned; E e; Base(E e) : e(e) {} }; struct X

[Bug c++/61491] An explicit specialization of a member enumeration of a class template is rejected

2014-06-12 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61491 --- Comment #1 from Ville Voutilainen ville.voutilainen at gmail dot com --- This is part of DR1206: http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#1206

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

2014-06-26 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 --- Comment #6 from Ville Voutilainen ville.voutilainen at gmail dot com --- (In reply to Jonathan Wakely from comment #5) Seems to be fixed on trunk, probably by Ville's fix for protected members. Yes, that fix is for 59483, I didn't wish

[Bug c++/51851] New: Overriding a function with a parameter of dependent type fails to override.

2012-01-13 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51851 Bug #: 51851 Summary: Overriding a function with a parameter of dependent type fails to override. Classification: Unclassified Product: gcc Version: 4.7.0 Status:

[Bug c++/51851] Overriding a function with a parameter of dependent type fails to override.

2012-01-13 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51851 --- Comment #1 from Ville Voutilainen ville.voutilainen at gmail dot com 2012-01-13 19:13:13 UTC --- Johannes Schaub says in both situations the question is whether the parameter type adjustments happen immediately or after instantiation (when T

[Bug c++/50169] new struct X {{}}; incorrectly treated as an invalid struct-definition

2011-08-23 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50169 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[Bug c++/50811] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier

2011-10-20 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811 --- Comment #1 from Ville Voutilainen ville.voutilainen at gmail dot com 2011-10-20 23:26:57 UTC --- Oh my. struct C { int x; }; int main() { struct C final {}; int y = final.x; } says error: ‘final’ was not declared

[Bug c++/50811] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier

2011-10-20 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811 --- Comment #2 from Ville Voutilainen ville.voutilainen at gmail dot com 2011-10-20 23:34:06 UTC --- It thus looks like it gets parsed as a class definition instead of a variable definition.

[Bug c++/50811] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier

2011-10-20 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811 --- Comment #3 from Ville Voutilainen ville.voutilainen at gmail dot com 2011-10-20 23:48:15 UTC --- (In reply to comment #2) It thus looks like it gets parsed as a class definition instead of a variable definition. ..which is actually correct

[Bug c++/50811] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier

2011-10-20 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811 --- Comment #4 from Ville Voutilainen ville.voutilainen at gmail dot com 2011-10-21 00:40:58 UTC --- Patch in http://gcc.gnu.org/ml/gcc-patches/2011-10/msg01914.html

[Bug c++/50811] [C++0x] G++ rejects class-virt-specifier if class-head-name includes nested-name-specifier

2011-10-21 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50811 --- Comment #7 from Ville Voutilainen ville.voutilainen at gmail dot com 2011-10-21 14:24:23 UTC --- (In reply to comment #6) thanks! You're welcome! I don't like leaving bugs open in code I wrote, so instead of turning in early, I decided

[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')

2011-07-09 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[Bug c++/41426] User defined conversion on return ignores array types

2011-07-14 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41426 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[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 ville.voutilainen at gmail dot com --- (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

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org

[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 initializer_list struct _Iter_less_iter

[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 ville.voutilainen at gmail dot com --- 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

[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 ville.voutilainen at gmail dot com --- 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63959 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org

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

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

[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 ville.voutilainen at gmail dot com changed: What|Removed |Added CC

[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 templatetypename struct foo { static_assert(noexcept(((foo *)1)-~foo()), ); }; template class fooint; Clang diagnoses the use

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

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

[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_castT(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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61754 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

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

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

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

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

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

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

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

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

[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62212 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Keywords

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

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

[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

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

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

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

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

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

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

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

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

  1   2   3   4   5   6   >