You are not logged in.

#1 2014-05-04 16:11:54

SuperV1234
Member
From: Italy
Registered: 2013-07-02
Posts: 14
Website

Clang unusable after updating GCC to 4.9

Environment: Arch Linux x64

---

Trying to compile my projects with Clang after updating to GCC 4.9 fails. I'm using the `-std=c++11` flag.

/usr/include/c++/4.9.0/cstddef:51: error: no member named 'max_align_t' in the global namespace
  using ::max_align_t;
        ~~^

Seems like Clang has some issues with the new libstdc++ (4.9). I've linked similar reports below.

---

Similar reports:
http://sourceforge.net/apps/trac/cppcheck/ticket/5757
https://bugs.debian.org/cgi-bin/bugrepo … bug=744872
http://stackoverflow.com/questions/1777 … dio-header

Offline

#2 2014-05-04 20:11:10

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Clang unusable after updating GCC to 4.9

Link to the commit for clang addressing the issue. http://reviews.llvm.org/rL201729

Offline

#3 2014-05-04 21:52:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Clang unusable after updating GCC to 4.9

Needs a bug report to get this fixed in the repos.

Offline

#4 2014-05-05 01:41:00

PhCl
Member
Registered: 2013-02-24
Posts: 3

Re: Clang unusable after updating GCC to 4.9

I have the same problem:
https://stackoverflow.com/questions/234 … 1-option-i

Same error message. By the way, the C++11 snippet compiles without the "-std=c++11" flag.

@Scimmia: If I understand correctly, it is already fixed in upstream, so the bug report should go to bugs.archlinux.org?

Offline

#5 2014-05-05 03:04:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Clang unusable after updating GCC to 4.9

Yep.

Offline

#6 2014-05-05 03:39:14

scri
Member
Registered: 2012-08-18
Posts: 3

Re: Clang unusable after updating GCC to 4.9

If this been reported already, could someone provide a link to the bug?

Offline

#7 2014-05-05 18:53:11

PhCl
Member
Registered: 2013-02-24
Posts: 3

Re: Clang unusable after updating GCC to 4.9

I just filed a bug report:
https://bugs.archlinux.org/task/40229

Offline

Board footer

Powered by FluxBB