What happens if you use the built in version?
On Jul 2, 2016 10:19 AM, "lh mouse" <lh_mo...@126.com> wrote:

> Have you guys got g++ 6.1? I am now suffering from an ICE, but
> I am not sure whether it is a bug of GCC. I am looking forward to
> your opinions. If this is indeed a GCC bug I will file it soon.
>
> ** Note: the function `memcpy` is declared manually to avoid
> #include'ing any system headers. The prototype MUST match
> the one in the standard library. Renaming it or changing its
> parameters is not allowed in order to reproduce the ICE. **
> ```
> D:\Desktop>cat test.cpp
> extern "C" void *__attribute__((__cdecl__)) memcpy(void *, const void *,
> unsigned);
> auto p = &memcpy;
>
> D:\Desktop>i686-w64-mingw32-gcc test.cpp
> test.cpp:2:11: internal compiler error: Segmentation fault
>  auto p = &memcpy;
>            ^~~~~~
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
>
> test.cpp:2:11: internal compiler error: Aborted
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
> i686-w64-mingw32-gcc: internal compiler error: Aborted (program cc1plus)
> ```
>
> --------------
> Best regards,
> lh_mouse
> 2016-07-02
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to