Questions tagged [gcc10]

Version 10.x of the GNU Compiler Collection. The compiler collection provides support for a wide range of languages on an even wider range of platforms.

Version 10.1 was released on 2020-05-07. Version 10.2 was released on 2020-07-23.

See also:

29 questions
1
vote
1 answer

Is g++ different than g++ -std=c++14 when the default standard is 201402L (c++14)?

I was trying to make use of precompiled headers to speed up compilation following this link: https://codeforces.com/blog/entry/53909 I observed that pre-compilation of headers and subsequent compilation of .cpp programs have to be done using the…
Enqueue
  • 57
  • 6
1
vote
0 answers

Call non default constructor of variadic inheritance

I have an abstract base class, and a class which implement it in a very basic way: class base { public: virtual ~base() = default; virtual void func() = 0; } class base_core : public base { public: base_core(int); void func()…
Coral Kashri
  • 3,436
  • 2
  • 10
  • 22
1
vote
0 answers

GCC Version 10.1.0 failing on compilation of a BUILT IN function call in LFS "Illegal Instruction Internal Compiler Error"

My build is frozen this is figured out. I'm using jhalfs to get started but the issue is most certainly gcc-10.1.0 I get the following error in the make log. The error outwardly says this a gcc thing... but. `/sources/gcc-10.1.0/build/./gcc/xgcc…
1
vote
1 answer

Using GCC10 with Qt on KDE Neon 18

I would like to play around with some very new C++20 features. Some of them are supported by GCC10 only. Unfortunately the most current release is GCC9.3 so I need to use the unreleased version of GCC10. I did the following to install it: sudo…
Silicomancer
  • 8,604
  • 10
  • 63
  • 130
0
votes
1 answer

Escape Character's unusal behavior

I'm getting an unintended output from this code. int main() { int var; while ((var = getchar() ) != '\n') { if (var == '\t') printf("\\t"); if (var == '\b') printf("\\b"); if (var ==…
0
votes
0 answers

Compile error, c++ OlcPixelGameEngine header file in use. Ubuntu 20.04

so the header file actually needs packages for it to work, I don't know how to install it that is why I am posting the error here. -lGL -lpthread -lpng -lstdc++fs -std=c++17 /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lpng collect2:…
0
votes
0 answers

warning: compound assignment with 'volatile'-qualified left operand is deprecated

I have some c++ project in my hands, before this problem arrive i have c++17 flag in my makefile after i tried c++20 this warnings shows up. After a short look i dont understand what is the problem, after a C++20 flag this what i get from compiler…
Hardy35
  • 1
  • 1
  • 4
0
votes
1 answer

c++20 concepts constructor overloading

Let #include struct B{}; template struct A{ A(int) {} }; template<> struct A{ A(B d) {} }; template struct C{ A a; C(B b) requires std::same_as : a{b} {} C(int i) requires…
desio
  • 126
  • 6
0
votes
1 answer

Building MinGW with Mingw-builds fails

I have been building mingw-w64 using mingw-builds (https://github.com/niXman/mingw-builds) successfully for a long time. Now I wanted to build g++ 10.3, but somehow it does not work anymore. I have found no related questions and I am not aware of…
Benjamin Bihler
  • 1,612
  • 11
  • 32
0
votes
1 answer

Efficiency of OpenMP vs optimisation levels

I am new to openmp, but I have been puzzled by this for a few days and couldn't find any answer online. Hopefully someone here can explain this strange phenomenon to me. I wanted to compare runtimes between a sequential and a parallel version of the…
0
votes
0 answers

Compiler optimizes out the coroutine value

I have implemented two coroutines that uses the Resumable class: #include #include #include class Resumable { public: class promise_type { public: auto initial_suspend() { …
Null
  • 349
  • 2
  • 12
0
votes
0 answers

How do I understand kernel oops error code?

I want to compile my linux kernel with GCC10.1 instead of GCC7.5 which I used before. Sadly, the kernel does not boot fully on my device, I believe its sound that causes Log: https://del.dog/raw/amyttunuva kernel source:…
John Bielowski
  • 199
  • 2
  • 11
-1
votes
1 answer

error: invalid operands of types 'bool' and 'int' to binary 'operator<=> - (GCC 10 - std=gnu++20)

i have some c++ project after a release of support c++20, i want to upgrade my makefile std support 17 to 20 after that point my compiler (gcc10.2) give me a error like this ; Error In file included from…
Hardy35
  • 1
  • 1
  • 4
-2
votes
2 answers

Consistency of undefined behavior for a fixed compiler

I wonder how the compilers deal with undefined behavior. I will take GCC 10.4 for x86 architecture and -O2 -std=c++03 flags as an example, but please feel free to comment on other compilers. What does it take to alter the outcome of an operation…
honey_badger
  • 472
  • 3
  • 10
1
2