http://llvm.org/bugs/show_bug.cgi?id=13812

             Bug #: 13812
           Summary: clang is more strict with some indirect gotos that
                    with others
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


we reject

struct C {
  ~C();
};
void f(void **ip) {
  static void *ips[] = { &&l0 };
 l0:
  C c0;
  goto *ip;
}

but we accept

struct C {
  ~C();
};
void f(void **ip) {
  static void *ips[] = { &&l0 };
 l0:
  C c0;
  goto *&&l0;
}

we also accept

struct C {
  C(int x);
  ~C();
};
void f(void **ip) {
  static void *ips[] = { &&l0 };
 l0:
  C c0 = 42;
  goto *ip;
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to