Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

MSVC broken?

I thought this was valid C++:
    for (int i=0; ... ; ...) {
    for (int i=0; ... ; ...) {
I thought i went out of scope after the for block, yet MSVC says "error C2374: 'i' : redefinition; multiple initialization". Is Microsoft's compiler broken or do I not understand this correctly?

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Why, hello...

    Long time no see. How's my baby doing?

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.