[Bug c++/78506] [c++1z] wrong value category for class decomposition

2018-06-28 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78506 lucdanton at free dot fr changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c++/80084] New: [7 regression] wrong code for decomposition declaration with debug iterator

2017-03-17 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I managed to reduce to this testcase: // #include #include struct aggr { std

[Bug libstdc++/79162] [7 Regression] [C++17] ambiguity in string assignment due to string_view overload

2017-03-17 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79162 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/79503] New: [new inheriting ctors] spurious bad candidate from same or derived type

2017-02-13 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- My understanding of the new inheriting constructor rules is a bit shaky so I may be off here. The testcase

[Bug c++/79502] New: [[nodiscard]] attribute ignored for class template

2017-02-13 Thread lucdanton at free dot fr
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- On r245381, the demonstration program does not complain when compiled. //-- template struct [[nodiscard]] missiles {}; missiles make() { return

[Bug c++/79094] Pack expansion in using-declaration rejects an attempt to inherit a pack of constructors

2017-02-03 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79094 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization

2017-01-31 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79143 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/78591] New: [c++1z] ICE when using decomposition identifier from closure object

2016-11-29 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I'm not entirely sure is the ice-on-invalid tag is warranted here. $ g++-trunk -std=c++1z main.cpp main.cpp: In function 'int main

[Bug c++/78506] New: [c++1z] wrong value category for class decomposition

2016-11-24 Thread lucdanton at free dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The spec and intent looks straightforward to me, i should be an lvalue. //-- struct one { int i; }; int main() { auto&& [i] = one {}; // error

[Bug c++/78495] New: [7 regression][new inheriting ctors] variant members lead to uninitialized parameter

2016-11-23 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I noticed an std::unique_ptr destructor was being called on a bogus pointer in an own::optional<std::unique_ptr> te

[Bug c++/78124] [7 regression][c++1z] explicit inheriting constructor is ignored

2016-11-15 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78124 --- Comment #2 from lucdanton at free dot fr --- I ran into a different program that regressed starting at r241187 (again, only for -std=c++1z), this time not involving explicit constructors: //-- struct aggr { int x; }; struct base

[Bug c++/78361] New: [7 regression][c++1z] std::__is_referenceable doesn't handle noexcept function types

2016-11-14 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 40042 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40042=edit untested patch Curren

[Bug c++/78139] New: [7 regression][c++1z] inaccessible destructor required in new expression

2016-10-28 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- While trying to compile Boost.Locale with trunk in C++1z mode I ran into the following regression (simplified): // error: 'std

[Bug c++/57082] brace initialization requires public destructor

2016-10-27 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57082 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/78124] New: [7 regression][c++1z] explicit inheriting constructor is ignored

2016-10-26 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I have bisected this regression to r241188. The program fails to compile in C++1z mode on trunk, yielding this: $ g++-trunk -std=c++1z

[Bug c++/78073] inherited initializer_list constructor is not accessible

2016-10-26 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78073 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/68372] [concepts] invalid use of pack expansion expression in member function template declaration

2016-08-23 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68372 --- Comment #1 from lucdanton at free dot fr --- On 7 trunk (rev. 239680) it looks like the program now triggers an ICE: $ g++-trunk -std=c++1z -fconcepts main.cpp main.cpp: In substitution of 'template requires C... void foo::bar(X

[Bug c++/77337] New: [7 regression][c++1z] use before deduction of 'auto'

2016-08-22 Thread lucdanton at free dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The included program compiles on 6.1 and I think on the 6.2 branch (I would need definite confirmation however), with either -std=c++14 or -std=c++1z. On 7 trunk (rev

[Bug c++/68437] [concepts] fold expression, pack expansion, and deduced constraint requirement

2016-08-15 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68437 --- Comment #1 from lucdanton at free dot fr --- This compiles using tip of the trunk. Presumably the concepts overhaul took care of it.

[Bug c++/73456] New: [7 regression][concepts] ICE in non_atomic_constraint_p, at cp/logic.cc:315

2016-08-10 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Using the following program: //-- template struct list {}; template concept bool Sequence = true; template struct zip

[Bug c++/72415] [7 regression][concepts] ICE in satisfy_predicate_constraint

2016-08-03 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72415 --- Comment #2 from lucdanton at free dot fr --- I completely failed to make note that this used to compile on GCC 6.1, too (modulo the missing definition, again).

[Bug c++/72415] New: [concepts] ICE in satisfy_predicate_constraint

2016-07-25 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Using rev. 238737 with the following minimal testcase: //-- template struct indices {}; template struct foo_type { template static void impl(indices

[Bug c++/71808] New: [concepts] ICE in finish_member_declaration

2016-07-07 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- ICE on both 6.1 and 7 trunk (rev. 238124), although I can't verify if the stacktraces are similar. I don't know if the code should be rejected or not. $ cat main.cpp template

[Bug c++/71368] New: [concepts] ICE on constrained compound requirement

2016-06-01 Thread lucdanton at free dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The following produces an ICE on both GCC 6.1 and trunk (rev. 236974): $ cat main.cpp struct inner; template concept bool CompoundReq = requires { // fine

[Bug c++/71285] New: [7 regression] spurious 'insufficient contextual information' for member access on fold expression

2016-05-25 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- On rev. 236761 it looks like performing member access on a fold expression produces an 'insufficient

[Bug c++/70827] New: [6 regression] dubious use of deleted function in inherited constructor

2016-04-27 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- struct move_only { move_only() = default; move_only(move_only&&) = default; }; struct base { base(m

[Bug c++/70808] New: Spurious -Wzero-as-null-pointer-constant for nullptr_t

2016-04-26 Thread lucdanton at free dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The following program emits a warning when compiled with -Wzero-as-null-pointer-constant: int main() { int* no_warn = {}; // main.cpp:5:33: warning: zero as null

[Bug c++/69731] New: Inconsistent SFINAE in interaction with variable templates

2016-02-09 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 37641 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37641=edit Minimal testcase It appears that GCC behaves differen

[Bug c++/69718] New: [concepts] cc1plus segfault on invalid

2016-02-07 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The testcase was mechanically reduced. $ g++-trunk --version g++-trunk (GCC) 6.0.0 20160208 (experimental) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see

[Bug c++/69470] New: [concepts] bogus constrained member class template redeclared with different access

2016-01-25 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Using 6.0.0 20160122, testcase compiled with: g++-trunk -std=c++1z main.cpp results in: main.cpp:13:5: error

[Bug c++/69472] New: [concepts] constraint ignored on constrained member template of a class template

2016-01-25 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- PR69288 may be related as it also observes some differences in how a constrained template behaves depending on whether

[Bug c++/69189] New: [concepts] ICE: segmentation fault in instantiate_template_1

2016-01-07 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 37262 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37262=edit Preprocessed source Mechanically reduced preproces

[Bug middle-end/68983] [6 Regression] ICE: in store_field, at expr.c:6659

2016-01-06 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68983 --- Comment #8 from lucdanton at free dot fr --- (In reply to Jason Merrill from comment #7) > (In reply to lucdanton from comment #6) > > I've independently run into this bug and applying this patch to HEAD doesn't > > help on m

[Bug middle-end/68983] [6 Regression] ICE: in store_field, at expr.c:6659

2016-01-06 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68983 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/68942] New: overly strict use of deleted function before argument-dependent lookup (ADL)

2015-12-16 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Tested on 5.2.0, 5.2.1 and 6. I believe the testcase is incorrectly rejected. Clang accepts the program. Note that leaving

[Bug c++/68918] New: spurious "invalid use of incomplete type" in trailing return type

2015-12-15 Thread lucdanton at free dot fr
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Happens with GCC 5.2.1 and 6. $ g++-trunk -std=c++14 main.cpp main.cpp:20:37: error: invalid use of incomplete type 'const

[Bug c++/68812] New: [concepts] bogus mismatched argument pack lengths

2015-12-09 Thread lucdanton at free dot fr
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Using 6.0.0 20151208. Compiling yields: $ g++-trunk -std=c++1z main.cpp main.cpp: In instantiation of 'struct foo<int, long int, double>': main.cpp:12:32: require

[Bug c++/68782] New: [6 regression] bad reference member formed with constexpr

2015-12-07 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Using 6.0.0 20151208 the last two asserts fire, whereas they don't with GCC 5.2.1 (as expected). The issue seems constexpr related as not marking

[Bug c++/68630] New: [concepts] internal compiler error: in add_expr, at tree.c:7828

2015-12-01 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 36877 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36877=edit Reduced testcase Using 6.0.0 20151201 (experimen

[Bug c++/68628] New: [concepts] ICE: segmentation fault in crash_signal, toplev.c:334

2015-12-01 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- The source program was mechanically reduced. $ g++-trunk --version g++-trunk (GCC) 6.0.0 20151130 (experimental) Copyright (C) 2015 Free

[Bug c++/68530] New: [C++14] sorry, unimplemented: unexpected AST of kind loop_expr

2015-11-24 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Possibly related to PR c++/68206, which could also be exhibiting both this and a potentially unrelated ICE. $ g++-trunk --version g++-trunk

[Bug c++/68510] New: [concepts] ICE: in gimplify_var_or_parm_decl, at gimplify.c:1827

2015-11-23 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 36817 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36817=edit Reduced testcase Using g++-trunk (GCC) 6.

[Bug c++/68509] New: [6 regression][C++1z] ICE: in check_return_expr, at cp/typeck.c:8635

2015-11-23 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Testcase compiles fine in C++11 and C++14 modes, ICE is in C++1z mode only. $ g++-trunk --version g++-trunk (GCC) 6.0.0 20151124

[Bug c++/68437] New: [concepts] fold expression, pack expansion, and deduced constraint requirement

2015-11-19 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 36775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36775=edit Minimal testcase This is usin

[Bug c++/68372] New: [concepts] invalid use of pack expansion expression in member function template declaration

2015-11-16 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I can't really understand the error and I don't know the rules very well, but here goes. $ g++-trunk --version g

[Bug c++/68288] botched floating-point UDL

2015-11-12 Thread lucdanton at free dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68288 --- Comment #2 from lucdanton at free dot fr --- (In reply to TC from comment #1) > This behavior looks correct to me. (Clang behaves identically.) > > 0e1_e+0 is a valid pp-number, so per max munch it must be parsed that way, >

[Bug c++/68288] New: botched floating-point UDL

2015-11-11 Thread lucdanton at free dot fr
: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- I'm seeing this behaviour with GCC 6, GCC 5.2.0 and GCC 4.9.2. $ g++-trunk --version g++-trunk (GCC) 6.0.0 20151103 (experimental) Copyright (C) 2015 Free Software Foundation, Inc. This is free

[Bug c++/66586] New: Template backtrace is truncated/absent after 'template argument deduction/substitution failed:'

2015-06-18 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 35801 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35801action=edit Minimal

[Bug c++/66336] New: [C++14][Variable templates] Spurious error: expansion pattern contains no argument packs

2015-05-29 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 35651 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35651action=edit Minimal testcase $ g

[Bug c++/65497] New: Call to member function template named the same as class template is rejected

2015-03-20 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 35076 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35076action=edit Minimal testcase $ g++-trunk --version g++-trunk (GCC

[Bug c++/65340] New: [C++14]ICE in mark_used, at decl2.c:5040

2015-03-06 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 34981 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34981action=edit Reduced testcase This is an ICE on invalid code. $ g++-trunk --version g++-trunk (GCC) 5.0.0 20150307

[Bug c++/65202] New: [5.0 regression]ICE segfault with constexpr/noexcept

2015-02-25 Thread lucdanton at free dot fr
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 34866 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34866action=edit Reduced testcase Using: $ g++-trunk --version g++-trunk (GCC) 5.0.0 20150223 (experimental

[Bug c++/65195] New: [5.0][C++14]Variable template cannot be used as a function

2015-02-24 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 34858 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34858action=edit Minimal testcase $ g++-trunk --version g++-trunk (GCC) 5.0.0 20150223

[Bug c++/64352] New: [5.0 regression] No SFINAE with deleted function

2014-12-18 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 34300 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34300action=edit Minimal testcase Using: g++-trunk (GCC) 5.0.0 20141218 (experimental) Testcase: templatebool B struct

[Bug c++/64080] New: [5.0 regression][C++14]ICE in cxx_eval_store_expression

2014-11-25 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 34122 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34122action=edit Program exhibiting ICE GCC version output: g++-trunk (GCC) 5.0.0 20141126

[Bug c++/63522] New: [4.8/4.9/5.0] ICE: unexpected expression 'ElementIndices' of kind template_parm_index

2014-10-13 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 33696 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33696action=edit Minimal testcase Attempting to compile

[Bug c++/62299] New: [4.9/5 regression] ICE with __attribute__((__weakref__())) and __thread

2014-08-28 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr $ g++-trunk --version g++-trunk (GCC) 5.0.0 20140828 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source

[Bug c++/62072] New: [4.9/4.10 regression] No SFINAE performed for function type

2014-08-08 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr $ cat main.cpp templatetypename T struct tuple_size {}; templatetypename T struct tuple_sizeT const: tuple_sizeT {}; templatetypename T, typename = void struct query

[Bug ipa/60600] [4.9 Regression] ICE in ipa_get_indirect_edge_target_1

2014-03-22 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60600 --- Comment #5 from lucdanton at free dot fr --- (In reply to Martin Jambor from comment #2) Well, this is ICE on code with undefined behavior. Function test calls itself with a parameter which is a reference to an object of type child2

[Bug c++/60600] New: ICE in ipa_get_indirect_edge_target_1

2014-03-20 Thread lucdanton at free dot fr
++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 32404 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32404action=edit Testcase $ g++-trunk --version g++-trunk (GCC) 4.9.0 20140319 (experimental) $ cat main.cpp struct data { data

[Bug c++/60314] New: [4.9][C++1y] ICE with decltype(auto) when generating debug information

2014-02-21 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Using trunk (g++-trunk (GCC) 4.9.0 20140222 (experimental)): $ cat main.cpp // fine // decltype(auto) qux() { return 42; } struct foo { // also ICEs

[Bug c++/60095] New: Dubious diagnostics for attempted surrogate call function

2014-02-06 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Using ‘gcc version 4.9.0 20140123 (experimental) (GCC)’ with the following snippet: // struct foo { typedef void(*ptr)(int); operator ptr() const

[Bug c++/59329] Using `assert(...)` is not allowed in constexpr functions

2014-01-23 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59329 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/59766] c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason

2014-01-19 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59766 --- Comment #1 from lucdanton at free dot fr --- Happens too with GCC 4.9 (20140105), as well as when using decltype(auto).

[Bug c++/58932] New: [4.9 Regression][C++11] Deleted functions and SFINAE in partial template specializations

2013-10-30 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 31114 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31114action=edit Testcase Using: $ gcc-snapshot --version gcc

[Bug c++/58173] New: [C++11] Bad interaction between sizeof... and remainder (%) operators

2013-08-16 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr $ g++-snapshot --version g++-snapshot (GCC) 4.9.0 20130806 (experimental) $ cat main.cpp templatetypename... T struct foo { static constexpr auto N

[Bug c++/57644] New: [C++1y] Cannot bind bitfield to lvalue reference

2013-06-18 Thread lucdanton at free dot fr
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr $ g++-snapshot --version g++-snapshot (Debian 20130603-1) 4.9.0 20130603 (experimental) [trunk revision 199603] $ cat main.cpp struct foo { unsigned i: 32; }; int main() { foo f

[Bug c++/57401] New: 'Conflicting declaration' involving using declaration and dependent name

2013-05-24 Thread lucdanton at free dot fr
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Using 4.9.0 20130509 (experimental) [trunk revision 198734] with flags -std=c++11: $ cat main.cpp struct base { using base_type = base; using

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

2013-05-13 Thread lucdanton at free dot fr
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Following the resolution of 57253 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57253) it seems worthwhile to point out that there are missing specializations of std::function such that e.g

[Bug c++/57252] New: GCC does not treat ref-qualified overload set as ambiguous

2013-05-11 Thread lucdanton at free dot fr
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Created attachment 30099 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30099action=edit Minimal testcase $ g++-snapshot --version g++-snapshot (Debian 20130509-1

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

2013-05-11 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr $ g++-snapshot --version g++-snapshot (Debian 20130509-1) 4.9.0 20130509 (experimental) [trunk revision 198734] $ cat main.cpp templatetypename T

[Bug c++/57254] New: Overload resolution failure when member function tempate is defined out-of-line

2013-05-11 Thread lucdanton at free dot fr
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Using 4.9.0 20130509 (experimental) [trunk revision 198734] and -std=c++11 the following is rejected: //--- struct foo { templatetypename T

[Bug c++/56958] Spurious set but not used variable warning in empty pack expansion

2013-04-27 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56958 --- Comment #3 from lucdanton at free dot fr 2013-04-28 00:37:37 UTC --- I do make use of the variable in the pack; that the pack may be empty for some instantiations may or may not be something to look out for, but I don't think

[Bug c++/57063] static_cast from data member to rvalue reference sometimes wrongfully produces lvalue

2013-04-27 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot

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

2013-04-14 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56953 Bug #: 56953 Summary: [4.9]Inheriting constructors triggers instantiation of parameters at point of declaration Classification: Unclassified Product: gcc Version:

[Bug c++/56958] New: Spurious unused variable warning in empty pack expansion

2013-04-14 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56958 Bug #: 56958 Summary: Spurious unused variable warning in empty pack expansion Classification: Unclassified Product: gcc Version: unknown Status:

[Bug c++/56452] New: [C++11] Using declaration for inheriting constructors taints template parameter

2013-02-25 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56452 Bug #: 56452 Summary: [C++11] Using declaration for inheriting constructors taints template parameter Classification: Unclassified Product: gcc Version: 4.8.0

[Bug c++/56285] New: [C++11] Arguments to an inheriting constructor is not forwarded properly

2013-02-11 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56285 Bug #: 56285 Summary: [C++11] Arguments to an inheriting constructor is not forwarded properly Classification: Unclassified Product: gcc Version: 4.8.0

[Bug c++/56065] New: Constant expression incorrectly recognized not as such

2013-01-21 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56065 Bug #: 56065 Summary: Constant expression incorrectly recognized not as such Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity:

[Bug libstdc++/55463] New: Result of std::mem_fn doesn't accept rvalues

2012-11-25 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55463 Bug #: 55463 Summary: Result of std::mem_fn doesn't accept rvalues Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug c++/55408] New: ICE for member template definition with non-type variadic parameter

2012-11-19 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55408 Bug #: 55408 Summary: ICE for member template definition with non-type variadic parameter Classification: Unclassified Product: gcc Version: 4.8.0 Status:

[Bug c++/54912] New: [C++11] Non-type argument to alias template is not a constant expression

2012-10-12 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54912 Bug #: 54912 Summary: [C++11] Non-type argument to alias template is not a constant expression Classification: Unclassified Product: gcc Version: 4.8.0

[Bug c++/52830] New: ICE: canonical types differ for identity types ... when attempting SFINAE with member type

2012-04-02 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52830 Bug #: 52830 Summary: ICE: canonical types differ for identity types ... when attempting SFINAE with member type Classification: Unclassified Product: gcc Version: 4.8.0

[Bug c++/41518] copy initialization of volatile objects

2012-02-15 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41518 lucdanton at free dot fr changed: What|Removed |Added CC||lucdanton at free dot fr

[Bug c++/49447] New: operator= (and compound assignment ops) does not perfectly forward

2011-06-16 Thread lucdanton at free dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49447 Summary: operator= (and compound assignment ops) does not perfectly forward Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3