Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#27790 - [gcc] 4.6.2 internal compiler error
Attached to Project:
Arch Linux
Opened by Tomasz Mikolajczyk (tomaszmi) - Sunday, 01 January 2012, 12:11 GMT
Last edited by Allan McRae (Allan) - Monday, 23 January 2012, 04:06 GMT
Opened by Tomasz Mikolajczyk (tomaszmi) - Sunday, 01 January 2012, 12:11 GMT
Last edited by Allan McRae (Allan) - Monday, 23 January 2012, 04:06 GMT
|
DetailsDescription:
gcc reports an internal compiler error when compiling a code from the attached file. The gcc's output: gcc_crash.cpp:16:7: warning: direct base ‘Foo’ inaccessible in ‘X’ due to ambiguity [enabled by default] gcc_crash.cpp: In constructor ‘X::X()’: gcc_crash.cpp:21:18: internal compiler error: in build_base_path, at cp/class.c:270 Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. Additional info: * package version: 4.6.2 20111125 (prerelease) Steps to reproduce: Compile the attached file: > g++ gcc_crash.cpp |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 23 January 2012, 04:06 GMT
Reason for closing: Upstream
Additional comments about closing: See final comment
Monday, 23 January 2012, 04:06 GMT
Reason for closing: Upstream
Additional comments about closing: See final comment
gcc_crash.cpp
test.cpp:16:7: warning: direct base ‘Foo’ inaccessible in ‘X’ due to ambiguity [enabled by default]
The warning is clear... you can not directly access Foo in X, but that is exactly what you do and how you get the crash. You probably want:
class X : virtual public Bar<Foo>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51614