: 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
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
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 kariya_mitsuru at hotmail dot com ---
I found several examples that cause the similar error message.
=== sample code 1 ===
constexpr int copy(const int v)
{
return v;
}
constexpr const int
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=35627action=edit
g++ -v
Please see the sample
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #13 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
Thank you for your quick response.
But unfortunately, I found problems like below.
== sample code 1 ==
constexpr char f
++
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 #15 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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 kariya_mitsuru at hotmail dot com changed:
What|Removed |Added
Summary|GCC rejects valid constant |[C++11
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #6 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
I also found a strange behavior like below.
== sample code ==
#include iostream
constexpr char s1[] = s1;
constexpr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
--- Comment #8 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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=65509
Mitsuru Kariya kariya_mitsuru at hotmail dot com changed:
What|Removed |Added
Status|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65509
--- Comment #14 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
The rev.221737 seems to be able to compile the sample code above, but cannot
compile another sample code like below.
= sample code
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=35143action=edit
g++ -v
The sample code below
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54483
Mitsuru Kariya kariya_mitsuru at hotmail dot com changed:
What|Removed |Added
CC
: 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=35091action=edit
g++ -v
The sample code below should be compiled
: 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=35017action=edit
g++ -v
The sample code below should be compiled
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 iostream
#include
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350
--- Comment #1 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
Created attachment 34985
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34985action=edit
g++ -v
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=34934action=edit
g++ -v
The sample code below causes
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=34930action=edit
g++ -v
Please see
: 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=34645action=edit
g++ -v
Please see the sample code below
: 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=34491action=edit
g++ -v
The sample code below should not throw a regex_error.
= sample
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=34437action=edit
g++ -v
Please see
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=34436action=edit
g++ -v
Please see the following sample
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #7 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
When I used the match_results::swap on r218710, I got a compilation error.
== sample code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64441
--- Comment #2 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
The rev.219121 seems to satisfy the sample code above, but does not satisfy
another sample code like below.
== sample code
: 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=34362action=edit
g++ -v
Please see the following sample
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=34277action=edit
g++ -v
The match_results::cbegin()/cend() should return
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=34278action=edit
g++ -v
Please see the following sample
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #3 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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
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=34231action=edit
g++ -v
Please see the following sample
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=34156action=edit
g++ -v
Please see
: 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=34049action=edit
g++ -v
The sample code below is aborted with attempt to increment a past-the-end
iterator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63920
--- Comment #1 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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=34005action=edit
gcc -v
The sample code below
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=33815action=edit
gcc -v
The sample code below
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57610
Mitsuru Kariya kariya_mitsuru at hotmail dot com changed:
What|Removed |Added
CC
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61791
--- Comment #1 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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 complexdouble, double
Severity: 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::complexfloat, int) is
std::complexfloat.
However, In C++11 mode, the return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61795
--- Comment #2 from Mitsuru Kariya kariya_mitsuru at hotmail dot com ---
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
: 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::complexdouble(1, 2)) should be
std::complexdouble(1, 2) but libstdc++ returns
++
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 typename, typename
class J {};
class S
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60594
Mitsuru Kariya kariya_mitsuru at hotmail dot com changed:
What|Removed |Added
CC
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 standard 2.2[lex.phases], string
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 kariya_mitsuru at hotmail dot com ---
Created attachment 30775
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30775action=edit
Patch
For your convenience, I attached a patch for this problem
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 algorithm
#include vector
#include iostream
int main()
{
std
62 matches
Mail list logo