gcc9 Questions

1

struct details_state { struct details_status D1; struct details_status D2; }; struct details { struct details_state details_states[2]; } __attribute__((packed)); struct details *p; voi...
Hyperthyroidism asked 22/2, 2022 at 8:17

3

I can compile and run a program that assigns a long int literal, albeit it one that would fit into an int, to an int variable. $ cat assign-long-to-int.c #include <stdio.h> int main(void){ ...
Numerator asked 1/12, 2021 at 14:22

1

Solved

This program (compiled with option -std=c++17) #include <stdio.h> #include <string> void* operator new(std::size_t nrOfBytes) { printf("allocate %zd bytes on heap\n", nrOfBytes); voi...
Mouthpiece asked 13/1, 2020 at 17:18

1

I'm trying to multiply vectors of uint32_t producing the full 64-bit result in an uint64_t vector in gcc. The result I expect is for gcc to emit a single VPMULUDQ instruction. But what gcc outputs ...
Decretive asked 13/11, 2019 at 13:9

1

I'm trying to format the modification time of a file as a string (UTC). The following code compiles with GCC 8, but not GCC 9. #include <chrono> #include <filesystem> #include <ioma...
Sheya asked 27/6, 2019 at 10:9

1

Solved

I'm simply trying stringstream in UTF-8: #include<iostream> #include<string> #include<sstream> int main() { std::basic_stringstream<char8_t> ss(u8"hello"); char8_t c; st...
Townsend asked 8/8, 2019 at 6:31
1

© 2022 - 2024 — McMap. All rights reserved.