David Cameron has called yesterday's wall collapse which left an Edinburgh schoolgirl dead "absolutely shocking".
Addressing MPs at Prime Minister's Questions, he pledged that such accidents would not be allowed to happen again.
This was an absolutely shocking accident that people will have seen across the country and their hearts will go out to the family and all those involved in the school. Clearly the lessons will have to be learnt to make sure tragic accidents like this can't happen again.
The school where a 12-year-old pupil died after a wall collapsed has had "difficulties with fragmenting and fraying to the fabric" of the building, according to a Scottish government minister.
Justice Secretary Kenny McAskill insisted Edinburgh council were doing a "good job" on school maintenance, despite financial pressures.
He also sought to reassure parents that "everything that needs to be done immediately is being done" to make sure Liberton High School is safe.
Yesterday Edinburgh Council said they were not aware of any prior concerns about the wall.
Urgent school building checks will begin today after a 12-year-old pupil died when a wall in a PE changing room collapsed on her.The girl, named locally as Keane Wallis-Bennett, was pronounced dead at Liberton High School in Edinburgh shortly before 10am yesterday.
Pupils were sent home early, while police and health and safety officials launched an inquiry.
Edinburgh City Council said the wall that collapsed was a "free-standing modesty wall", and all other such walls in its other schools are to be checked by building surveyors, starting this morning.
The school will not reopen this week and a full council survey of Liberton High will be completed before pupils return from the Easter holidays in three weeks.
A 12-year-old pupil has died at a school in Edinburgh after a wall collapsed inside a changing room.Read the full story ›
Some at the school said concerns had previously been raised about the safety of a wall in the gym changing rooms where a 12-year-old girl died today.
Pupil Tamara Taylor told ITV News that the wall was "loose".
"People were pushing it and stuff, and it went all loose," she said.
Edinburgh City Council said the wall that collapsed was a "free standing modesty wall", and all other such walls in its other schools are to be checked by building surveyors.
Edinburgh City Council has said an urgent review of all school buildings with similar free-standing walls will begin tomorrow after one in a changing room collapsed and killed a 12-year-old pupil.
It said that a full survey of the main building at Liberton High School, where the incident occurred, will be carried out before pupils are allowed to go back inside.
Police investigations are ongoing, however we understand that the wall that collapsed was a free standing modesty wall in a changing room.
A full survey of all our schools, including Liberton High School, was carried out in 2012/13 and no concerns with this wall were identified.
However, as a precaution, specialist council building services staff will be surveying all similar walls in schools where we know that they exist.
Asked whether the council was aware of any concerns about the wall prior to today's incident, Andy Gray, head of schools and community services at the City of Edinburgh Council, said:
We are not aware of that at this stage.
We are working with the police and the Health and Safety Executive to really find out thoroughly what has happened today.
Superintendent Matt Richards said:
At the moment the Health and Safety Executive and the police will meet tomorrow morning to decide the lead.
We're working with the council as well to ensure we get to know exactly what happened.
A 12-year-old girl who died after a wall collapsed at a school in Edinburgh has been named locally as Keane Wallis-Bennett.
Police Scotland have said that the schoolgirl who died after she was crushed by a wall at her school was 12-years-old.
The pupil has not been identified, although Liberton High School confirmed earlier in a text to the parents of other pupils that the schoolgirl's parents had been notified.
A parent of children at Liberton High School in Edinburgh has recounted the moment he received a text from his son, telling him "we're all OK".
A schoolgirl was killed at the school this morning after being crushed by a collapsing wall, reportedly in a PE changing room.
Alan Palfreyman said he had no idea what had happened until he received the text from one of his children who attends the school.
Mr Palfreyman told ITV News: "Matthew was born the day after Dunblane, and I instantly thought 'is it something major that's happened?'. Obviously it turned out that it had."