Re: [cfe-users] the case of the missing label in the switch/case

2016-11-09 Thread folkert via cfe-users
The problem is that you were using CaseStmt::getRHS instead of CaseStmt::getSubStmt. No idea what getRHS is supposed to return then. On Wed, Nov 09, 2016 at 09:53:28AM +0100, folkert via cfe-users wrote: > Hi, > > I maybe very well not understanding something but it looks like a label > targetted

[cfe-users] the case of the missing label in the switch/case

2016-11-09 Thread folkert via cfe-users
Hi, I maybe very well not understanding something but it looks like a label targetted by a goto, in a switch statement, gets missing: if I iterate through the ast and emit all the stmt/expr/decls, then no label-type is emitted. #include void myfunc(int a) { switch(a) {