[cfe-dev] Uncaught exceptions

Broes De Cat cathello at gmail.com
Mon Jun 4 01:31:44 PDT 2012


Hi,

One of the main loops of our program looks like

void executeInstruction(){
    try{
       execute(...)
    }catch(const IdpException& ex){
       ...
    }
}

When using clang++ 3.1 to compile our project, none of the exceptions
thrown in execute gets caught (which are IdpExceptions), instead the
executable is terminated each time with an uncaught exception.
It still fails when adding a catch statement with ellipsis (catch(...)) to
the try catch block.
Threading is not involved.

Is such behavior a known bug? It works perfectly in g++ 4.2 and beyond...

thanks in advance,
Broes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120604/129bb54b/attachment.html>


More information about the cfe-dev mailing list