On Fri, Sep 15, 2023 at 4:07 PM Hanke Zhang wrote:
>
> I get it. It's a `lto` problem. If I remove `-flto`, both work.
That's odd - it might be that GCC thinks part of the program is cold and doesn't
optimize it. Does using -fwhole-program instead of -flto also not work?
Richard.
> Thanks for
Snapshot gcc-14-20230917 is now available on
https://gcc.gnu.org/pub/gcc/snapshots/14-20230917/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 14 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch
On Sun, 17 Sept 2023, 20:33 Paul Floyd via Gcc, wrote:
> Hi
>
> I'm looking at a Valgrind issue. Full details here
>
> https://bugs.kde.org/show_bug.cgi?id=472329
>
> This code
>
> void foo(std::optional f) {
>std::cout << (f ? *f : 0) << std::endl;
>std::set test;
>test.emplace(0);
>
On Sun, 17 Sept 2023, 21:27 Rahim Fakir via Gcc, wrote:
> Is it possible to add source code samples like visual studio has?
>
What kind of samples do you mean? What does visual studio have, could you
provide a link showing what you mean?
I honestly have no idea what you're suggesting.
I thin
Is it possible to add source code samples like visual studio has?
I think that it will be better for students to have a page with samples by
gcc.
Windows has a good samples repository GCC should have one.
Professor Bjarne forgot about the samples by one book C++ programing
Languages 4th edition
I t
Hi
I'm looking at a Valgrind issue. Full details here
https://bugs.kde.org/show_bug.cgi?id=472329
This code
void foo(std::optional f) {
std::cout << (f ? *f : 0) << std::endl;
std::set test;
test.emplace(0);
auto it{test.begin()};
while (it != test.end()) {
int64_t b{*it};
// Val