Opened 7 years ago

Closed 6 years ago

#7910 closed defect (invalid)

gui fails to build with gcc 7

Reported by: Joachim Reichel Owned by: noone
Priority: High Milestone:
Component: Other Keywords: patch, gui
Cc: mtasaka@…

Description

cppcheck fails to build with the development version of gcc 7. The attached patch fixes the problem.

Original Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853356

Attachments (1)

ftbfs-gcc7 (1.1 KB ) - added by Joachim Reichel 7 years ago.
patch

Download all attachments as: .zip

Change History (9)

by Joachim Reichel, 7 years ago

Attachment: ftbfs-gcc7 added

patch

comment:1 by Matthias Krüger, 7 years ago

Keywords: patch gui added
Summary: Fails to build with gcc 7gui fails to build with gcc 7

Note: from looking at the output, it looks like cppcheck-gui is being build rather than cppcheck.

I tried compiling cppcheck with gcc-7-git and I did not encounter errors.

comment:2 by Mamoru TASAKA, 7 years ago

Cc: mtasaka@… added

comment:3 by Matthias Krüger, 7 years ago

Priority: NormalHigh
Type: enhancementdefect

comment:4 by Mamoru TASAKA, 7 years ago

gcc upstream developer commented in the above Red Hat bugzilla that this is due to a bug in GCC side:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79566
ref:
https://bugzilla.redhat.com/show_bug.cgi?id=1423312#c7

comment:5 by Daniel Marjamäki, 7 years ago

I am not against the patch. but I would prefer that gcc-7 is fixed. If they release this gcc with this bug then I think the patch is fine.

comment:6 by Mamoru TASAKA, 7 years ago

The above gcc bug says that this (the gcc bug) is fixed in trunk, which means (by the current gcc status) that the above bug is to be fixed in formal gcc 7 release.

comment:7 by Mamoru TASAKA, 6 years ago

On Fedora, this is fixed in gcc-7.0.1-0.10.fc26.

comment:8 by Daniel Marjamäki, 6 years ago

Resolution: invalid
Status: newclosed

The above gcc bug says that this (the gcc bug) is fixed in trunk, which means (by the current gcc status) that the above bug is to be fixed in formal gcc 7 release

ok, closing this as invalid.

Note: See TracTickets for help on using tickets.