[llvm-bugs] [Bug 25181] New: [3.7] Exit code 5 on compilation

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 14 06:58:39 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25181

            Bug ID: 25181
           Summary: [3.7] Exit code 5 on compilation
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: daniel.f.starke at freenet.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I have reduced a testcase with multidelta to the following lines:
  template<typename _CharT>
    class collate : public locale::facet
    {
  template<typename _CharT>
    collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw
()
    { return 0; }
Compiling this with Clang/LLVM on Windows (mingw-w64) via
"E:\\msys\\mingw64-64\\bin\\clang++.exe" "-cc1" "-triple"
"x86_64-w64-windows-gnu" "-emit-obj" "-disable-free" "-disable-llvm-verifier"
"-main-file-name" "Script.cpp" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases"
"-munwind-tables" "-target-cpu" "core2" "-momit-leaf-frame-pointer"
"-dwarf-column-info" "-D" "_WIN32_WINNT=0x0501" "-D" "WIN32_LEAN_AND_MEAN" "-D"
"BOOST_THREAD_USE_LIB" "-D" "BOOST_SPIRIT_USE_PHOENIX_V3=1" "-D" "_UNICODE"
"-D" "UNICODE" "-D" "BOOST_USE_WINDOWS_H" "-O3" "-Wall" "-Wextra" "-Wformat"
"-Wshadow" "-Wconversion" "-Wparentheses" "-Wunused" "-Wcast-qual"
"-Wnon-virtual-dtor" "-Wold-style-cast" "-Wno-unused-parameter"
"-Wno-long-long" "-pedantic" "-std=c++03" "-fdeprecated-macro"
"-ftemplate-depth" "1024" "-ferror-limit" "19" "-fmessage-length" "0"
"-backend-option" "-force-align-stack" "-mstackrealign" "-fno-use-cxa-atexit"
"-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions"
"-fdiagnostics-show-option" "-vectorize-loops" "-vectorize-slp" "-x" "c++"
"testcase.i"
were testcase.i contains the code above results in the following errors and
returns exit code 5:
testcase.i:2:28: error: use of undeclared identifier 'locale'
    class collate : public locale::facet
                           ^
testcase.i:2:36: error: expected class name
    class collate : public locale::facet
                                   ^
testcase.i:4:21: error: declaration of '_CharT' shadows template parameter
  template<typename _CharT>
                    ^
testcase.i:1:21: note: template parameter is declared here
  template<typename _CharT>
                    ^
testcase.i:5:59: error: unknown type name 'size_t'
    collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw
()
                                                          ^
testcase.i:5:22: error: nested name specifier 'collate<_CharT>::' for
declaration does not refer into a class, class template or class template
partial specialization
    collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw
()
    ~~~~~~~~~~~~~~~~~^
testcase.i:6:18: error: expected '}'
    { return 0; }
                 ^
testcase.i:3:5: note: to match this '{'
    {
    ^
0x00000000014171CC (0x00000000046044F0 0x0000000000000028 0x0000000002A09218
0x00000000000000CA)
0x0000000001412D0E (0x0000000002A5EED0 0x000000000022CBF0 0x0000000000000000
0x0000000002A09170)
0x00000000013B8652 (0x0000000000000000 0x0000000000000022 0x0000000000000000
0x0000000000000000)
0x00000000013B987B (0x0000000000000050 0x0000000000000050 0x0000000000000022
0x000000007704FBA8)
0x000000000139AA2A (0x000000000022D6F0 0x0000000002A08A28 0x000000000022E200
0x0000000000000003)
0x000000000140D2F1 (0x0000000002656D76 0x00000000029D6970 0x000000000022E2C0
0x000000000022E1A8)
0x000000000140E9C5 (0x000000000022E420 0x0000000000000000 0x000000000022E560
0x0000000000000003)
0x000000000140ED8A (0x0000000002A5F64A 0x0000000001B6F434 0x0000000000000000
0x0000000002A5FA40)
0x00000000013A64F2 (0x00000000029E14B8 0x0000000000000000 0x000000000022E560
0x00000000029D5F20)
0x000000000138CBCF (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x000000000022E680)
0x000000000138D827 (0x00000000029D2B79 0x0000000000000004 0x00000000029D5670
0x000000000266BAB4)
0x00000000013819E1 (0xFFFFFFFFFFFFFFFF 0x0000000000B512BC 0x00000000029D2A58
0x0000000000000017)
0x0000000000ECDAA6 (0x00000000029D1030 0x000000000295CCF0 0x0000000000000000
0x0000000001157FE5)
0x0000000000EB3B46 (0x00000000029C8B20 0x0000000000B7D852 0x0000000000000010
0x0000000001E50A90)
0x0000000000F3E9BC (0x000000000295CBD0 0x000000000295ADF0 0x00000000002C7128
0x000000000022E9E0)
0x0000000000401FF8 (0x000000000022EEF0 0x00000000029CF820 0x0000000000401530
0x000000000022EEC0)
0x00000000020BA778 (0x0000000000000047 0x000000000000000B 0x0000000002869A20
0x0000000000000000)
0x00000000004013E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x000000000040151B (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x0000000076EF59CD (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0xD bytes(s)
0x000000007702B981 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
Clang/LLVM was compile with GCC 4.9.3 in release mode.

-- 
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/20151014/3e310caa/attachment.html>


More information about the llvm-bugs mailing list