--- Comment #2 from Andrej Mitrovic <> 2011-06-19 
07:26:37 PDT ---
I don't really know why it wouldn't be allowed, unless there's some
optimization technique that depends on it.


void main()
    int x;
    int y;

    switch (x)
        case y + 1:


Error: variable y cannot be read at compile time
Error: case must be a string or an integral constant, not y + 1

Either runtime values are fully supported, or they are not. Some decision has
to be made for this if the compiler and TDPL don't agree with each other.
Should I open up a new thread in the NGs to discuss this?

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to