[Bug c++/57846] CRTP, templates, metaprogramming, forwarding and static member

2014-12-12 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||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++/61924] [C++11] ICE in instantiate_template_1, at cp/pt.c:15618

2014-12-12 Thread ville.voutilainen at gmail dot com
||5.0 Version|unknown |4.9.1 Keywords||ice-on-invalid-code Last reconfirmed||2014-12-12 CC||ville.voutilainen at gmail dot com Ever

[Bug c++/64293] [C++14] explicit instantiation declaration suppresses instantiation of constexpr constructor

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

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

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

[Bug c++/63296] g++ reports incomplete type for static template member of template class

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63378] decltype and access control issues

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63263] friend declaration of function template specialization gets confused when specialization was forward declared.

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63217] template conversion operator returning const reference not used for conversion in some cases

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/61648] g++ accepts literal operator friends for non-template classes but not for *template* classes

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/61936] template template friends fail to compile.

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63149] wrong auto deduction from braced-init-list

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63192] non-mutable lambda capture by value on reference does not apply const

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/63192] non-mutable lambda capture by value on reference does not apply const

2014-12-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63192 --- Comment #2 from Ville Voutilainen --- Reduced: template struct same {static constexpr bool value = false;}; template struct same {static constexpr bool value = true;}; int main() { float x, &r = x; [=] { // x and r are not capture

[Bug c++/63151] Accessibility error when brace-constructing base class with protected defaulted constructor and member variable

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-13 CC||ville.voutilainen at gmail dot com Known to work||4.8.2 Ever confirmed|0 |1 Known to

[Bug c++/62310] fails to consider default initializers (NSDMIs) when checking inheriting constructors

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-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++/62276] ICE when non-variadic template template parameter is default argument of variadic template template parameter

2014-12-13 Thread ville.voutilainen at gmail dot com
Status|UNCONFIRMED |NEW Last reconfirmed||2014-12-13 CC||ville.voutilainen at gmail dot com Known to work||4.8.2, 4.9.0, 5.0 Ever confirmed|0 |1

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

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

[Bug c++/62241] C++14 generalized lambda capture doesn't work with uniform initialization syntax.

2014-12-13 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-14 CC||ville.voutilainen at gmail dot com Known to work||5.0 Ever confirmed|0 |1 Known to fail

[Bug c++/60262] explicit destructor call via Derived to destructor of Base accepted without using a qualified-id

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

[Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c

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

[Bug c++/62163] Dependent function call in constant expression produces error in template definition context

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

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

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

[Bug c++/62134] [C++11] ICE with template alias

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

[Bug c++/62134] [C++11] ICE with template alias

2014-12-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134 --- Comment #2 from Ville Voutilainen --- A reduced testcase would be nice.

[Bug c++/60511] [C++1y][N3652] Missing extended constexpr function support

2014-12-13 Thread ville.voutilainen at gmail dot com
, ||ville.voutilainen at gmail dot com Known to work||5.0 --- Comment #1 from Ville Voutilainen --- The current trunk accepts the testcase (and implements C++14 relaxed constexpr). Shouldn't this be closed?

[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

2014-12-13 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 also silently accepts the code.

[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

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

[Bug c++/61941] Mis-parsing of warn_unused_result function with ref-qualifiers

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

[Bug c++/61937] Misleading errors due to constructor template deducing argument as void

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

[Bug c++/61806] [C++11] Expression sfinae w/o access gives hard error in partial template specializations

2014-12-13 Thread ville.voutilainen at gmail dot com
||2014-12-14 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail|4.10.0 |5.0 --- Comment #1 from Ville Voutilainen --- Clang accepts the code.

[Bug c++/59790] Inner template class specialization has no direct access to outer template class typedefs

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

[Bug c++/57743] Code accepted by other recent compilers, but not by g++ - possibly failure to activate ADL

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

[Bug c++/60105] [C++11] ICE on enable_if explicit cast operator

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

[Bug c++/61726] Ambiguous overload resolution with inherited op()s

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

[Bug c++/61683] decltype-specifier not accepted as mem-initializer-id

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

[Bug c++/61663] [DR 976] Deduction for const T& conversion functions

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

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

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

[Bug c++/61670] ICE on invalid in tree_nop_conversion

2014-12-13 Thread ville.voutilainen at gmail dot com
, ||ville.voutilainen at gmail dot com Known to work||4.8.2, 4.9.1, 5.0 --- Comment #1 from Ville Voutilainen --- Current trunk does not ICE. Please close.

[Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c

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

[Bug c++/60177] Unable to deduce template base of derived class in call to function taking a `simple-template-id`

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

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

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

[Bug c++/61351] ICE on valid when deducing template arguments with nested expansions of the same pack

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

[Bug c++/61260] Issue with instantiates of variadic templates inside other templates (possibly name lookup problem)

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

[Bug c++/61198] Crash when selecting specializations through aliases.

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

[Bug c++/60767] use of "using" inside template causes failure in retreive_specialization

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

[Bug c++/61103] False-positive, template-independent name taken as dependent name

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

[Bug c++/54890] Incorrect SFINAE Rejection

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

[Bug c++/59988] Failing to specialize template class

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

[Bug c++/61490] accepts-invalid: qualified-name in friend function definition

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

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

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

[Bug c++/60927] Ambiguity not caught when name introduced through using-directive conflicts with previously declared entity

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

[Bug c++/61457] Inaccurately refusing non-ODR usage of type with no linkage

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

[Bug c++/61670] ICE on invalid in tree_nop_conversion

2014-12-14 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61670 --- Comment #3 from Ville Voutilainen --- This doesn't crash on my local compiler, which is 20141212.

[Bug c++/54442] Const overloads resolution failure

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

[Bug c++/60860] Friend function declaration incorrectly hides function in outer namespace

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

[Bug c++/60786] In C++11 an explicit instantiation with an unqualified name must be in the right namespace

2014-12-14 Thread ville.voutilainen at gmail dot com
||2014-12-14 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||4.8.2, 4.9.1, 5.0 --- Comment #3 from Ville Voutilainen --- Clang rejects the code.

[Bug c++/60842] In-class initializer causes a strange error

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

[Bug c++/60803] Trivial example of overloading in the presence of inheritance fails

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

[Bug c++/60799] access checking within injected friend functions does not happen in the context of the enclosing class

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

[Bug c++/60798] Access checking of template alias not done at the point of use

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

[Bug c++/60760] arithmetic on null pointers should not be allowed in constant expressions

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

[Bug c++/60742] ill-formed declarator (array) in selection statement not caught appropriately

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

[Bug c++/60679] class specialization not instantiated even though it is a better match than the primary template

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

[Bug c++/61189] ICE with __builtin_return_address() in noexcept lambda on x86

2014-12-15 Thread ville.voutilainen at gmail dot com
, ||ville.voutilainen at gmail dot com --- Comment #1 from Ville Voutilainen --- The problem doesn't seem to occur on Linux-x64. Kai, can you take a look?

[Bug libstdc++/64315] New: num_put misbehaves if the C library doesn't support floats

2014-12-15 Thread ville.voutilainen at gmail dot com
ement Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ville.voutilainen at gmail dot com In num_put::_M_insert_float, __convert_from_v can fail, leading into a __widen being called with a negative size. This may happen with a C li

[Bug c++/64333] New: C++14 constexpr gives wrong results when a looping constexpr function is evaluated twice

2014-12-16 Thread ville.voutilainen at gmail dot com
Keywords: wrong-code 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 #include constexpr int max(std::initializer_list ints

[Bug c++/64335] New: decltype and access of a private member type

2014-12-16 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 This compiles fine: #include class foo { std::chrono::high_resolution_clock clock;}; static_assert(!decltype(foo::clock)::is_steady, "xxx"); Th

[Bug c++/64335] decltype and access of a private member type

2014-12-16 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64335 --- Comment #1 from Ville Voutilainen --- Pardon that, the latter example contains remnants of other experiments. Here's a simplified version, (not that it really should matter :) ) class foo { class bar {}; }; int main() { decltype (fo

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

2014-12-18 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 --- Comment #11 from Ville Voutilainen --- Reduced further: class base { protected: typedef int type; }; template class derive: public base { public: void foo() { struct f_t { f_t(base::type a) {} }; } }; int main() {

[Bug c++/63506] GCC deduces wrong return type of operator*() inside template functions

2014-12-19 Thread ville.voutilainen at gmail dot com
|UNCONFIRMED |NEW Last reconfirmed||2014-12-19 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1 Known to fail||5.0 --- Comment #6 from

[Bug c++/64450] Optimize 0>=p-q to q>=p for char*p,*q;

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

[Bug c++/64455] New: A constexpr variable template can't be used with enable_if

2014-12-31 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 #include template constexpr bool IsType = true; template struct X { ty

[Bug c++/64466] New: A generic lambda in a class template causes an ICE in gimplify

2015-01-01 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 template struct my_queue { void push(T){ } void ice(){ trav

[Bug c++/64466] A generic lambda in a class template causes an ICE in gimplify

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

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

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

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2015-01-01 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Ville Voutilainen changed: What|Removed |Added Keywords||ice-on-valid-code Status

[Bug c++/64455] A constexpr variable template can't be used with enable_if

2015-01-01 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64455 --- Comment #1 from Ville Voutilainen --- Btw, this problem prevents using the C++14 trait aliases with the forthcoming trait variable templates as they were intended, because template enable_if_t> f() {} is also erroneously rejected with the

[Bug c++/64455] A constexpr variable template can't be used with enable_if

2015-01-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64455 --- Comment #2 from Ville Voutilainen --- Reduced to avoid using type_traits: template constexpr bool IsType = true; template struct Test { }; template struct Test { typedef T type; }; template struct X { typedef typename Test,T

[Bug c++/64489] New: A simple struct wrapping a const int is not trivially copyable

2015-01-04 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 struct X {const int val;}; static_assert(__is_trivially_copyable(const int

[Bug c++/64489] A simple struct wrapping a const int is not trivially copyable

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

[Bug c++/64489] A simple struct wrapping a const int is not trivially copyable

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

[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 --- 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 simple enough.

[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 --- 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 void f(T&& t, int i, U&&... u) {} template 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 changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[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 struct mypair { mypair(T, U) {} }; template auto my_make_pair(T t, U u) { return mypair(t, u); } template struct S { mypair get_pair() noexcept { return my_make_pair

[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 --- 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 --- 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++11, it ICEs on 4.7 and 4.8 as well

[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 --- (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, so this is already in, no need t

[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 --- 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 --- (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 Issues was more or less on hold w

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

2014-05-09 Thread ville.voutilainen at gmail dot com
nt: c++ 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 varia

[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 --- (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 the problem.

[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 --- (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, but that's another matter), so I rec

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

[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@localhost ~]$ g++ --std=c++11 -c dan.cpp dan.cpp: In instantiation of ‘struct derive::foo(base::type) [with T = char; base::type = int]::f_t’: dan.cpp:18:5: required from ‘void derive::foo(base:

[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 --- 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 the patch fixes, or the patch itself

<    1   2   3   4   5   6   >