[LLVMbugs] [Bug 2349] New: Initializer bug/2

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 20 16:06:07 PDT 2008


           Summary: Initializer bug/2
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu

The below is invalid; clang accepts it.  It also avoid clang's
returning-address-of-local warning, which it perhaps should trigger.

short *a (void)
  short int b;
  static short *bp = &b;

  return bp;

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.

More information about the llvm-bugs mailing list