[aspectc-user] Computed GOTOs?

aspectc at stefan-marr.de aspectc at stefan-marr.de
Mon Jun 9 21:07:22 CEST 2008


is it possible to get computed gotos for AspectC++?

At the moment the compiler does not like label definitions like "L1:" and
the goto statement "goto *label1;".
Ok, there are probably issues with gotos and AOP in general, but since I use
only very basic advices and the code which needs computed gotos for
performance reasons is cleanly separated, it would be nice to be able to use

Kind Regards
Stefan Marr

== Example Code for Computed Gotos ==

#include <stdio.h>

// build with 
// g++ test.c succeeds
// ag++ test.c fails

int main(int argc, char** argv) {
    printf("Test for computed gotos.\n");


    void* label1 = &&L1;
    goto *label1;

More information about the aspectc-user mailing list