: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below returns 0 if it is compiled by GCC HEAD with c++2a mode
but I think that it should return 1.
sample code
int main
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below is compiled successfully by current trunk.
==
template
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below cannot be compiled by current trunk.
==
template
int foo()
{
if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68781
Mitsuru Kariya changed:
What|Removed |Added
CC||kariya_mitsuru at hotmail dot
com
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below should be compiled successfully in c++20 mode but gcc
9.1.0 or above generate
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The current implementation of scoped_allocator_adaptor is not support nested
pair.
=== sample code
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The current implementation of std::variant stores its index() on an unsigned
char member variable (_M_index) if its
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below is failed to compile by GCC
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
Please see the sample code below.
=== sample code ===
#include
#include
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
Please see the sample code below.
== sample code ==
int main()
{
char* s = new char[4]{&quo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70352
--- Comment #1 from Mitsuru Kariya ---
Sorry, I forgot to paste an error message.
= error message =
prog.cc: In function 'int main()':
prog.cc:3:19: error: invalid use of 'auto'
auto p = new (a
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
The sample code below should be compiled successfully but it causes a
compilation error.
== sample code
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
Please see the sample code below.
== sample code ==
struct T {};
struct S
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66287
--- Comment #1 from Mitsuru Kariya ---
I found several examples that cause the similar error message.
=== sample code 1 ===
constexpr int copy(const int& v)
{
return v;
}
constexpr const int& r = 42;
constexpr const int& c =
verity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Target Milestone: ---
Created attachment 35627
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35627&action=edit
g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #15 from Mitsuru Kariya ---
I have opened a new issue bug 65642.
(Sorry, I made a mistake in operation so its description is empty.)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65642
Mitsuru Kariya changed:
What|Removed |Added
Summary|GCC rejects valid constant |[C++11] GCC rejects valid
++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #13 from Mitsuru Kariya ---
Thank you for your quick response.
But unfortunately, I found problems like below.
== sample code 1 ==
constexpr char f(const char* s)
{
return *(s +
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #8 from Mitsuru Kariya ---
Oh, thanks a lot! I've got it.
(And I've understood the reason why clang rejects it ;).)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #6 from Mitsuru Kariya ---
I also found a strange behavior like below.
== sample code ==
#include
constexpr char s1[] = "s1";
constexpr char s2[] = "s2";
bool f(const char* p
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509
Mitsuru Kariya changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509
--- Comment #14 from Mitsuru Kariya ---
The rev.221737 seems to be able to compile the sample code above, but cannot
compile another sample code like below.
= sample code =
constexpr char s1[] = "s1";
constexpr ch
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 35143
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35143&action=edit
g++ -v
The sample cod
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483
Mitsuru Kariya changed:
What|Removed |Added
CC||kariya_mitsuru at hotmail dot
com
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 35091
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35091&action=edit
g++ -v
The sample code below should be c
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 35017
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35017&action=edit
g++ -v
The sample code below should be c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350
--- Comment #1 from Mitsuru Kariya ---
Created attachment 34985
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34985&action=edit
g++ -v
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Please see the sample code below.
== sample code ==
#include
#include
void
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34934
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34934&action=edit
g++ -v
The sample cod
RMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34930
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34930&action=edit
g++ -v
Ple
: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34645
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34645&action=edit
g++ -v
Please see the sample cod
: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34491
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34491&action=edit
g++ -v
The sample code below should not throw a regex_error.
=
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34437
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34437&action=edit
g++ -v
Ple
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34436
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34436&action=edit
g++ -v
Please see the following
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #7 from Mitsuru Kariya ---
When I used the match_results::swap on r218710, I got a compilation error.
== sample code
==
#include
int main()
{
std::cm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64441
--- Comment #2 from Mitsuru Kariya ---
The rev.219121 seems to satisfy the sample code above, but does not satisfy
another sample code like below.
== sample code
==
#include
: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34362
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34362&action=edit
g++ -v
Please see the fo
ormal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34278
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34278&action=edit
g++ -v
Please see the foll
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34277
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34277&action=edit
g++ -v
The match_results::cbegin()/cend() should
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #3 from Mitsuru Kariya ---
Sorry, I confused the copy ctor with the copy assignment operator.
But it seems that both are same results.
operator= version : http://melpon.org/wandbox/permlink/ZHzYukOyuluuzpwu
I didn't notice, but both
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34231
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34231&action=edit
g++ -v
Please see the following
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34156
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34156&action=edit
g++ -v
Please
: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34049
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34049&action=edit
g++ -v
The sample code below is aborted with "attempt to increment a past-the-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63920
--- Comment #1 from Mitsuru Kariya ---
Sorry, the last link was mistaken.
The right link is below.
http://melpon.org/wandbox/permlink/v1HhsIs8d2LrmUk9
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 34005
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34005&action=edit
gcc -v
The sample cod
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Created attachment 33815
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33815&action=edit
gcc -v
The sample cod
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57610
Mitsuru Kariya changed:
What|Removed |Added
CC||kariya_mitsuru at hotmail dot
com
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
The sample code below should be compiled successfully but it causes compilation
error by gcc
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
The sample code below should cause a compilation error but it can be compiled
successfully by g
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
The both sample codes below should cause compilation error but they are
compiled successfully by gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61795
--- Comment #2 from Mitsuru Kariya ---
I think that this behaviour is caused by r201253 (for PR57974, Comment 11).
DR844 was fixed by r136694 but reverted by r201253.
diff r135878 r136694
https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/in
: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
With libstdc++, the return type of std::pow(std::complex, int) is
std::complex.
However, In C++11 mode, the return type of std::pow(std
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61791
--- Comment #1 from Mitsuru Kariya ---
Sorry, the text which should be quoted was mistaken.
> According to C++11 standard 26.4.9[cmplx.over] paragraph 2, "if either
> argument has type complex, double, or an integer type, then both
> arguments a
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
I think that the sample code below should be compiled successfully.
===
#include
: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
std::proj returns incorrect values if _GLIBCXX_USE_C99_COMPLEX is not defined.
For example, std::proj(std::complex(1, 2)) should be
std::complex(1, 2) but libstdc++ returns
std::complex
++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
The sample code below causes a strange error.
=== source code ===
namespace N {
class I {};
}
template
class J {};
class S {
J j = J
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60594
Mitsuru Kariya changed:
What|Removed |Added
CC||kariya_mitsuru at hotmail dot
com
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
I think that the sample code below should be compiled successfully.
void operator "" "" _x(unsigned long long);
According to C++11 sta
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
The sample code below should be compiled successfully but g++ reports an error.
int A = 1;
enum A {
x = 2,
};
int
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58358
--- Comment #15 from Mitsuru Kariya ---
Created attachment 30775
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30775&action=edit
Patch
For your convenience, I attached a patch for this problem.
This algorithm is always scanned to reverse o
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: kariya_mitsuru at hotmail dot com
Following code should print less than or equal to 11, but it prints 20.
#include
#include
#include
int main()
{
std::vector a{2, 1, 1, 1, 1, 1
62 matches
Mail list logo