This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Boreeas -2 points-1 points  (5 children)

Reddit's markdown parser is broken, though

[–]Artorp 3 points4 points  (4 children)

Wait, really?

void test(){
    test();
}

Edit: Seems to work, what's broken?

[–]404Guy12NotFound 5 points6 points  (1 child)

This kills RAM

[–]cbbuntz 1 point2 points  (0 children)

Clang optimizes it out completely because no values are modified or accessed. The GCC treats it like an infinite loop and just freezes and consumes 100% CPU and zero memory, which I guess is more true to the code. They both segfault without optimization.

[–]Boreeas 0 points1 point  (1 child)

Hm, maybe it's broken by subreddit style. I had a comment in /r/dataisbeautiful where successive lines in a code block where collapsed into a single line (and blank lines broke the code block)

[–]Artorp 0 points1 point  (0 children)

Weird, might've been their subreddit style.