Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about compiler-bug

Read more about compiler-bug

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - compiler-bug

Is __builtin_ctzll(0) "undefined behavior" or just "undefined"?

GCC documentation says this about the __builtin_ctz family: Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is 0, the result is undefined. Until now,...
test-img

user1020406

gcc

x86

clang

undefined-behavior

compiler-bug

Votes: 0

Answers: 0

Why MSVC still compiles to error for calling a method after removing const-ness of the object?

To avoid complexity, below is a minimal example. For some reason, I have to pass normal object as const to some method and use it as such: #include<iostream> #define CALL(OBJECT, METHOD) \ c...
test-img

iammilind

c++

visual-c++

compiler-errors

c++14

compiler-bug

Votes: 0

Answers: 0

variable initialized wrong

i got a very strange problem with a variable that has name 'val'. I will try my best to explain it. I cannot make any small code example that do the same issue and my project is very big so can't uplo...
test-img

mod Zz

c++

visual-studio

compiler-bug

Votes: 0

Answers: 1

Latest Answer

As Sam suggested, we can only guess here. But I think I have a good guess, so I'm posting it as an answer. I can reproduce the defect that you mentioned with the following steps: create a header file...
test-img

Vlad Feinstein

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved