[LLVMbugs] [Bug 19942] New: -std=c94 not an accepted option

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 4 07:28:59 PDT 2014


            Bug ID: 19942
           Summary: -std=c94 not an accepted option
           Product: clang
           Version: 3.4
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Documentation
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hstong at ca.ibm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

According to
The supported modes for C are c89, gnu89, c94, c99, gnu99 and various aliases
for those modes. If no -std option is specified, clang defaults to gnu99 mode.

-std=c94 is not accepted but -std=iso9899:199409 is.

### COMPILER INVOCATION AND OUTPUT (c94):> echo "int x<:10:>;" | clang -std=c94
-c -x c -
error: invalid value 'c94' in '-std=c94'
Return:  0x01:1

### COMPILER INVOCATION AND OUTPUT (iso9899:199409):> echo "int x<:10:>;" |
clang -std=iso9899:199409 -c -x c -
Return:  0x00:0

### VERSION INFO:> clang -v
clang version 3.4 (tags/RELEASE_34/final)
Target: powerpc64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/ppc64-redhat-linux/4.4.4
Found candidate GCC installation: /usr/lib/gcc/ppc64-redhat-linux/4.4.6
Selected GCC installation: /usr/lib/gcc/ppc64-redhat-linux/4.4.6
Return:  0x00:0

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140604/dc4063b1/attachment.html>

More information about the llvm-bugs mailing list