Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 82897
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: shay [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.47
Fixed in: (no value)



Subject: Compile error on Windows using VC++ in C++ mode

Message body is not shown because it is too large.

FYI, I can reproduce the same errors with this short C++ file: struct A { const struct A* const next; }; static const struct A a[1]; static const struct A b[1]; static const struct A a[1] = { {b} }; static const struct A b[1] = { {0} }; D:\temp>cl /c test.cpp Microsoft (R) C/C++ Optimizing Compiler Version 17.00.51106.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. test.cpp test.cpp(2) : error C2512: 'A' : no appropriate default constructor available test.cpp(3) : error C2512: 'A' : no appropriate default constructor available test.cpp(4) : error C2374: 'a' : redefinition; multiple initialization test.cpp(2) : see declaration of 'a' test.cpp(5) : error C2374: 'b' : redefinition; multiple initialization test.cpp(3) : see declaration of 'b'
The following pull request on GitHub fixes this ticket: https://github.com/dankogai/p5-encode/pull/30
PR was merged, so closing ticket.