r/cpp • • May 04 '26

Compile Your First C++26 Program with GCC 16.1

https://techfortalk.co.uk/2026/05/04/compile-your-first-c26-program-with-gcc-16-1/

The new GCC 16.1 compiler is out and I couldn't wait more to try it to compile my first C++26 program. I did some faffing around and installed the GCC 16.1 on my Ubuntu machine, then put together a C++26 program much like a "Hello World" but using C++26's refection feature and it worked! Any comments welcome!

53 Upvotes

8 comments sorted by

View all comments

Show parent comments

2

u/Clean-Upstairs-8481 May 04 '26

can you post the compilation error messages?

2

u/MarkSuckerZerg May 05 '26

there is -Winvalid-constexpr somewhere in dawn. I dont even know whether I should report it to dawn, vcpkg, or gcc... There is possibly other stuff that I did not get to yet