StackOverflow Questions for Tag: unspecified-behavior

W.F.
W.F.

Reputation: 13988

Can expression using pointers causing unspecified (not undefined!) behaviour be used in constexpr context?

Score: 6

Views: 192

Answers: 1

Read More
Torrie Merk
Torrie Merk

Reputation: 357

Is the default mode of ofstream implementation defined?

Score: 5

Views: 2950

Answers: 2

Read More
Fred Nurk
Fred Nurk

Reputation: 14212

Is it unspecified behavior to compare pointers to different arrays for equality?

Score: 18

Views: 3742

Answers: 3

Read More
Trevor Hickey
Trevor Hickey

Reputation: 37914

Is dereferencing a NULL pointer considered unspecified or undefined behaviour?

Score: 2

Views: 485

Answers: 2

Read More
nationalgrammarrodeo
nationalgrammarrodeo

Reputation: 71

order of evaluation in C with assigning a variable with a function that changes a variable in the same assignment

Score: 2

Views: 439

Answers: 1

Read More
user4791206
user4791206

Reputation:

Is undefined behavior in given code?

Score: 5

Views: 375

Answers: 2

Read More
Destructor
Destructor

Reputation: 14438

How not specify an exact order of evaluation of function argument helps C & C++ compiler to generate optimized code?

Score: 3

Views: 617

Answers: 4

Read More
Destructor
Destructor

Reputation: 14438

C++ initialization of namespace scope variable

Score: 1

Views: 2141

Answers: 2

Read More
bjfletcher
bjfletcher

Reputation: 11518

Default controllerAs for the Angular directive

Score: 1

Views: 317

Answers: 1

Read More
Fredrik Axelsson
Fredrik Axelsson

Reputation: 203

Sequence Point ambiguity, undefined behavior?

Score: 20

Views: 898

Answers: 2

Read More
Destructor
Destructor

Reputation: 14438

Is pointer comparison undefined or unspecified behavior in C++?

Score: 10

Views: 4067

Answers: 1

Read More
Michael Gazonda
Michael Gazonda

Reputation: 2864

When does knowingly utilizing unspecified behaviour provide benefit without sacrificing correctness?

Score: 2

Views: 185

Answers: 6

Read More
Chubsdad
Chubsdad

Reputation: 25537

Neither of undefined, implementation defined, unspecifed behavior

Score: 2

Views: 140

Answers: 2

Read More
Luke Murray
Luke Murray

Reputation: 861

Strange values while initializing array using designated initializers

Score: 18

Views: 1554

Answers: 5

Read More
user3920237
user3920237

Reputation:

Is it unspecified whether a standard library header includes arbitrary headers?

Score: 8

Views: 225

Answers: 1

Read More
Ross
Ross

Reputation: 395

CUDA: "Stack Overflow or Breakpoint Hit" and unspecified launch failure error after copying char array from host to device

Score: 0

Views: 709

Answers: 2

Read More
sukhmel
sukhmel

Reputation: 1492

C++ cout side-effect sequencing

Score: 11

Views: 1361

Answers: 2

Read More
Michael Gazonda
Michael Gazonda

Reputation: 2864

When is it okay to do/use something that has unspecified behaviour?

Score: -2

Views: 245

Answers: 1

Read More
user3390078
user3390078

Reputation: 75

inexplicable cuda behavior related to memory

Score: 1

Views: 334

Answers: 1

Read More
miskcoo
miskcoo

Reputation: 305

Is func() + func() undefined behavior?

Score: 1

Views: 277

Answers: 3

Read More
PreviousPage 3Next