Questions tagged [compiler-checks]

Use this tag for questions about static validation checks that can be performed by compilers and the errors that result from them. Do not use for error messages you received from a compiler, but only when designing or implementing these checks in a language.

Filter by
Sorted by
Tagged with
7 votes
3 answers
180 views

What are the pros and cons of different ways of forcing resources to be closed properly?

There are various external resources, like file handles, TCP connections, and various servers, which need to be closed in some specific way before being dropped. There are a few approaches to these ...
Rydwolf Programs's user avatar
5 votes
2 answers
206 views

How can a compiler's parse errors be tested?

There are fairly straightforward ways to test a compiler's behaviour on valid programs: most obviously, build a suite of programs to run through the compiler, and know what should happen when they run....
Michael Homer's user avatar
  • 11.7k
13 votes
2 answers
169 views

What ways are there to determine if cascading compile errors are dependent or independent?

In my experience as a developer, a single syntax error made in a long program can result in a long cascading list of error messages, only the first of which is directly relevant to the solution. For ...
Robert Columbia's user avatar
24 votes
5 answers
679 views

Can "no cyclic data structures" be enforced at compile time?

When using reference counting for garbage collection, memory leaks can occur when cyclic structures are created (an object which contains a pointer to itself, or a pointer to an object with a pointer ...
Rydwolf Programs's user avatar