Viewing Issue Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0010791 [DCSS] Bug Report minor always 2016-11-20 00:57 2016-11-20 02:06
Reporter geekosaur View Status public  
Assigned To PleasingFungus
Priority normal Resolution done Local or Remote Local
Status closed   Operating System MacOSX
Projection none   Console or Tiles Both
ETA none Fixed in Branch 0.21 ancient branch Product Branch 0.19 ancient branch
  Product Version 0.19.0
Summary 0010791: 0.19.0 build error on 10.8
Description 10.8's most recent Xcode has clang 3.4 (and its "gcc" is the same clang, not gcc).

    CXX mon-ench.o
mon-ench.cc:246:65: error: chosen constructor is explicit in copy-initialization
            unwind_var<mon_enchant_list> enchants(enchantments, {});
                                                                ^~
/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here
    explicit map(const key_compare& __comp = key_compare())
             ^
./unwind.h:21:27: note: passing argument to parameter 'newval' here
    unwind_var(T &val_, T newval) : val(val_), oldval(val_)
                          ^
1 error generated.
make: *** [mon-ench.o] Error 1


I suppose I can try on later versions and declare the older ones unsupported, if necessary. (My C++ is not up to this.)
Steps To Reproduce
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0031269)
geekosaur (reporter)
2016-11-20 01:00

I should mention that this is attempting to do an official distribution build with compatibility back to 10.7. As I have never gotten that error with later clang on either Linux or OS X, I presume this is actually a clang bug.
(0031270)
PleasingFungus (administrator)
2016-11-20 01:38

Fixed in 6e69d53, thanks!
(0031271)
geekosaur (reporter)
2016-11-20 02:05

Seems to build, so going with it. Have unsigned candidate builds.

- Issue History
Date Modified Username Field Change
2016-11-20 00:57 geekosaur New Issue
2016-11-20 01:00 geekosaur Note Added: 0031269
2016-11-20 01:38 PleasingFungus Note Added: 0031270
2016-11-20 01:38 PleasingFungus Status new => resolved
2016-11-20 01:38 PleasingFungus Fixed in Branch => 0.20 development branch
2016-11-20 01:38 PleasingFungus Resolution open => done
2016-11-20 01:38 PleasingFungus Assigned To => PleasingFungus
2016-11-20 02:05 geekosaur Note Added: 0031271
2016-11-20 02:05 geekosaur Status resolved => closed


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker