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
Stat
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
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: unknow
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: UNCONFIRME
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
th
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063
lucdanton at free dot fr changed:
What|Removed |Added
CC||lucdanton at free dot
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=30099&action=edit
Minimal testcase
$ g++-snapshot --version
g++-snapshot (Debian 2
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
template struct
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 {
template
void bar
: 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
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
Stat
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] with flags
-std=c++11:
$ cat main.cpp
struct base {
using base_type = base;
: 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
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
template
struct foo {
static constexpr auto N = sizeof...(T
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
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
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=31114&action=edit
Testcase
Using:
$ gcc-snapshot --
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78506
lucdanton at free dot fr changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution
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: U
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
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: no
++
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
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&action=edit
Minimal testcase
It appears that GCC
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
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
NCONFIRMED
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
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 with
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> testcase of mine (
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
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
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
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
: 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
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
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
: 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
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
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
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
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:
IRMED
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&action=edit
untested patc
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
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucdanton at free dot fr
Created attachment 32404
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32404&action=edit
Testcase
$ g++-trunk --version
g++-trunk (GCC) 4.9.0 20140319 (experimental)
$ cat main.cpp
stru
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 c
: 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=35076&action=edit
Minimal testcase
$ g++-trunk --version
g++-tru
NCONFIRMED
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=35651&action=edit
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).
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
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() c
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 if
: 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
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,
>
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 -
: 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&action=edit
Minimal testcase
This i
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
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&action=edit
Reduced testcase
Using g++-trunk (GCC
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
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=34858&action=edit
Minimal testcase
$ g++-trunk --version
g++-trunk (GCC) 5.0.0 2
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=34866&action=edit
Reduced testcase
Using:
$ g++-trunk --version
g++-trunk (GCC) 5.0.0 20150223 (exper
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucdanton at free dot fr
Created attachment 34981
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34981&action=edit
Reduced testcase
This is an ICE on invalid code.
$ g++-trunk --version
g++-trunk (GCC) 5.0.0 2
NCONFIRMED
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=33696&action=edit
Minimal testcase
Attempti
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=34122&action=edit
Program exhibiting ICE
GCC version output:
g++-trunk (GCC) 5.0.0 2
++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucdanton at free dot fr
Created attachment 34300
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34300&action=edit
Minimal testcase
Using:
g++-trunk (GCC) 5.0.0 20141218 (experimental)
Testcase:
template
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucdanton at free dot fr
$ cat main.cpp
template struct tuple_size {};
template struct tuple_size: tuple_size {};
template
struct query {
static constexpr bool value = false;
};
template
ty: normal
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
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
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&action=edit
Reduced testcase
Using 6.0.0 2
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 ma
: 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':
main.cpp:12:32: required from here
main.cpp:
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 'c
: 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
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
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
> >
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&action=edit
Preprocessed source
Mechanically
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
: 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 it is
NCONFIRMED
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=35801&ac
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
++
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.cp
++
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
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).
: 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
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.
iority: P3
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
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 ...)
85 matches
Mail list logo