Coming from the Christian view, I've heard that a baby who dies without accepting Christ, will go to heaven when he/she dies, because they don't understand salvation. Is this mentioned anywhere in the Bible or is it assumed?
Matt. 19:14 Jesus said, "Leave the children alone, and don't try to keep them from coming to me, because the kingdom of heaven belongs to such as these."
But why worry about it-the Bible isn't true anyway.
It's called "the age of accountability" and it is a totally invented doctrine and there is no basis for it in scripture. It is inferred / argued from principles, not from holy writ. One of the principles is that salvation is an intentional decision and thus requires a certain capability to think abstractly in order to be responsible for that decision, hence, god in his grace would not judge an innocent (a child, a developmentally disabled person, etc).
It just reflects the practical problem that you have to say something to deflect from the notion that technically, an unsaved person who dies is an unsaved person who dies (and goes to hell) and the fact they are a child has nothing to do with it so far as scripture is concerned. No pastor wants to deal with the fallout of telling a devastated parent that their infant is going to hell.
Some of this reflects the fact that the whole concept of childhood as a safe, fun, nurtured, carefree time is quite new on the human stage, it was only a fairly fully formed concept just a century ago; before that, child labor was common, for example, and compulsory free education was not the norm. And attitudes towards the developmentally challenged were shot through with much fear and loathing even more recently than that. The need to be tender and sympathetic to children and the disabled means the harsh dogma of Christianity must be softened in this regard.