[llvm-bugs] [Bug 40041] New: definition with same mangled name as another definition

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 16 05:11:22 PST 2018


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

            Bug ID: 40041
           Summary: definition with same mangled name as another
                    definition
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanboxem.ruben at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

The code linked to in the following comment (using Boost.Spirit.X3, so I can't
seem to compress it beyond 1.8MB) causes the following error followed by a
crash:

C:\PROGRA~1\LLVM\bin\clang-cl.exe  /nologo -TP -DNOMINMAX -DSKUI_DEBUG
-D_CRT_SECURE_NO_WARNINGS -I\\10.0.2.2\ruben\Development\skui
-I\\10.0.2.2\ruben\Development\skui\3rdparty\boost /DWIN32 /D_WINDOWS /W4 /GR
/EHsc /MDd /Zi /Ob0 /Od /RTC1   -std:c++17 /showIncludes
/Focss\CMakeFiles\css.dir\grammar\color.c++.obj
/Fdcss\CMakeFiles\css.dir\css.pdb -c
\\10.0.2.2\ruben\Development\skui\css\grammar\color.c++
In file included from
\\10.0.2.2\ruben\Development\skui\css\grammar\color.c++:25:
In file included from
\\10.0.2.2\ruben\Development\skui\css/grammar/color.h++:30:
In file included from
\\10.0.2.2\ruben\Development\skui\css/grammar/semantic_factory.h++:29:
In file included from
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3.hpp:20:
In file included from
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core.hpp:14:
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/action.hpp(35,9):
 error: definition with same mangled name
'??0?$action at U?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@x3 at spirit@boost@@V<lambda_1>@grammar at css@skui@@@x3 at spirit@boost@@QEAA at AEBU?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@123 at V<lambda_1>@grammar at css@skui@@@Z'
as another definition
        action(Subject const& subject, Action f)
        ^
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/action.hpp(35,9):
 note: previous definition is here
In file included from
\\10.0.2.2\ruben\Development\skui\css\grammar\color.c++:25:
In file included from
\\10.0.2.2\ruben\Development\skui\css/grammar/color.h++:30:
In file included from
\\10.0.2.2\ruben\Development\skui\css/grammar/semantic_factory.h++:29:
In file included from
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3.hpp:14:
In file included from
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/auxiliary.hpp:11:
In file included from
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/auxiliary/any_parser.hpp:11:
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/parser.hpp(54,33):
 error: definition with same mangled name
'??$?AV<lambda_1>@grammar at css@skui@@@?$parser at U?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@x3 at spirit@boost@@@x3 at spirit@boost@@QEBA?AU?$action at U?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@x3 at spirit@boost@@V<lambda_1>@grammar at css@skui@@@123 at V<lambda_1>@grammar at css@skui@@@Z'
as another definition
        action<Derived, Action> operator[](Action f) const
                                ^
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/parser.hpp(54,33):
 note: previous definition is here
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/parser.hpp(54,33):
 error: definition with same mangled name
'??$?AV<lambda_1>@grammar at css@skui@@@?$parser at U?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@x3 at spirit@boost@@@x3 at spirit@boost@@QEBA?AU?$action at U?$real_parser at MU?$ureal_policies at M@x3 at spirit@boost@@@x3 at spirit@boost@@V<lambda_1>@grammar at css@skui@@@123 at V<lambda_1>@grammar at css@skui@@@Z'
as another definition
        action<Derived, Action> operator[](Action f) const
                                ^
\\10.0.2.2\ruben\Development\skui\3rdparty\boost\boost/spirit/home/x3/core/parser.hpp(54,33):
 note: previous definition is here
Wrote crash dump file
"C:\Users\ruben\AppData\Local\Temp\clang-cl.exe-7452d7.dmp"
0x00007FF7463D3B25 (0x0000025A2B00002B 0x00007FF746936B4F 0x0000025AC76B4F60
0x000031661259B867)
0x00007FF746380FB6 (0x0000025ACD1143E0 0x0000025ACD1143D0 0x000000C462D8C310
0x0000000000000000)
0x00007FF7463854A8 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000025AC4A47D20)
0x00007FF7463852D0 (0x0000025AC4A58220 0x0000025AD2A23E88 0x0000000000000000
0x00007FF7482A8DA4)
0x00007FF74630FAD7 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF746931E1F (0x000000C462D8DB40 0x0000025AD1F5B2C0 0x000031661259A057
0x000000C462D8DA48)
0x00007FF74827FA05 (0x0000025AC4840CC0 0x00007FF74827FD15 0x000031661259BD27
0x000000C462D8DA48)
0x00007FF74827DC44 (0x0000025A00000012 0x00007FF749001603 0x0000000000000009
0x0000025A00000013)
0x00007FF747631324 (0x0000000000000000 0x0000000000000000 0x0000025AC49EB6C0
0x0000025AC49D8690)
0x00007FF746D8227D (0x0000025AC49D8690 0x0000025AC4A35E00 0x0000025AC4A23C40
0x00007FF746DDA2F9)
0x00007FF746D46847 (0x000000C462D8DE01 0x0000000000000000 0x0000000000000000
0x0000025AC4A1EF50)
0x00007FF746DDAF5C (0x0000025AC4A34270 0x00007FFA4DD22524 0x0EE603BF00000000
0x00007FFA4DD1EC14)
0x00007FF7453E6E48 (0x0000000000000000 0x0000000000000000 0x000000C462D8E720
0x000000C462D8E4D0)
0x00007FF7453E4317 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF748285780 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FFA4C643034 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFA4DD73691 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang-cl.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0 (tags/RELEASE_700/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~1\LLVM\bin
clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-cl.exe: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl.exe: note: diagnostic msg:
C:\Users\ruben\AppData\Local\Temp\color-1c51ce.sh
clang-cl.exe: note: diagnostic msg:

********************

-- 
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/20181216/d3542edf/attachment-0001.html>


More information about the llvm-bugs mailing list