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
Download (untitled) / with headers
text/plain 11.7k

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 788b
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'
Download (untitled) / with headers
text/plain 101b
The following pull request on GitHub fixes this ticket: https://github.com/dankogai/p5-encode/pull/30
PR was merged, so closing ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.