Error map
may be used uninitialized C/C++: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
C/C++ · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (9)
C/C++: runtime error: signed integer overflow / null pointer / shift exponent too large (UndefinedBehaviorSanitizer)
UBSan detected code that triggers undefined behaviour (overflow, null dereference, out-of-bounds index, bad shift, misaligned acc…
C++: error: narrowing conversion of 'x' from 'int' to 'char' inside { } [-Wnarrowing]
Brace initialisation `{}` refuses conversions that can lose data, such as `double` to `int` or a runtime `int` to `char`.
C: warning: assignment makes pointer from integer without a cast
An integer is assigned to a pointer (or the reverse) without conversion — often because a function was implicitly declared.
C: warning/error: passing argument from incompatible pointer type [-Wincompatible-pointer-types]
A pointer of one type is passed where another pointer type is expected.
MemorySanitizer: use-of-uninitialized-value
Uninitialised memory influenced a branch or output.
C++: warning: 'X::a' will be initialized after 'X::b' [-Wreorder]
Members are initialised in declaration order, not in the order of the constructor's initialiser list.
C/C++: warning: address of local variable 'x' returned [-Wreturn-local-addr]
The function returns a pointer or reference to a variable that no longer exists after it returns.
C++: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
A string literal (const char[]) is assigned to a non-const `char*`.
valgrind: Conditional jump or move depends on uninitialised value(s)
A branch used a value that was never set.
Two steps away (21)
C++: error: cannot declare variable 'x' to be of abstract type 'Shape' (pure virtual functions)
You tried to create an object of a class that still has pure virtual functions; only a derived class that overrides all of them c…
C/C++: warning: control reaches end of non-void function [-Wreturn-type]
A function that promises a return value can finish without returning one on some path — undefined behaviour in C++.
C/C++: Assertion `x > 0' failed. Aborted (core dumped) — assert() condition was false
An `assert()` in your code or in a library found its condition false and aborted the program on purpose.
Rust: error[E0308]: mismatched types — expected `X`, found `Y`
A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…
C++: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
C++ forbids silently dropping `const` or converting between unrelated pointer types — typically a string literal assigned to `cha…
C++: error: 'string' does not name a type
Where the compiler expected a type, it found a name it does not know as one — a missing header, namespace, or class declared late…
Go: panic: runtime error: invalid memory address or nil pointer dereference
The program used a pointer, map, interface or struct field that was nil — usually an uninitialised value or an ignored error.
C++: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
You compared a string literal or pointer with a character or integer — typically `ch == "y"` instead of `ch == 'y'`.
C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration]
In C you called a function the compiler has not seen declared — usually a missing `#include`. Newer compilers treat it as an erro…
C++: error: passing 'const X' as 'this' argument discards qualifiers [-fpermissive]
A const object (or const reference) is calling a method that is not declared const, which could modify it.
C++: error: call of overloaded 'f(int)' is ambiguous
Two or more overloads fit equally well, so the compiler refuses to guess which function you meant.
C++: error: reference to 'X' is ambiguous (using namespace std conflicts)
Two declarations of the same name are visible, usually because of `using namespace std`.
AddressSanitizer: attempting double-free on address
The same memory was freed twice.
C++: error: call to implicitly-deleted default constructor of 'X'
A class has no usable default constructor because a member or base cannot be default-constructed.
MSVC: error C2512: 'X': no appropriate default constructor available
A default-constructed object requires a default constructor that does not exist.
C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer
The program touched memory it is not allowed to access — a null or dangling pointer, an out-of-range array index, or a stack over…
C/C++: ==ERROR: AddressSanitizer: heap-use-after-free on address — memory used after delete/free
The program read or wrote a heap block after it had been freed; ASan shows who freed it and where it was allocated.
Rust: error[E0608]: cannot index into a value of type `HashSet<i32>` / `String` cannot be indexed by `{integer}`
The type doesn't support `[]` indexing (or not with that index type).
C: error: assignment to expression with array type
C cannot assign one array to another with `=`.
AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete)
Memory was allocated with one family (new[]/malloc) and freed with another.
valgrind: Invalid read of size 4 / Invalid write — Address is 0 bytes after a block of size
Valgrind detected a heap read/write outside an allocation.