[Bug c++/61647] New: internal compiler error: in push_access_scope, at cp/pt.c:219 for a c++ header, clang++ 3.4 generate .pch without error
blancesnow at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jun 29 09:47:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61647
Bug ID: 61647
Summary: internal compiler error: in push_access_scope, at
cp/pt.c:219 for a c++ header, clang++ 3.4 generate
.pch without error
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: blancesnow at gmail dot com
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.9.0/configure --prefix=/usr --libdir=/usr/lib
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --disable-multilib --with-system-zlib
--enable-languages=c,c++,fortran,ada,go,java,objc,obj-c++
Thread model: posix
gcc version 4.9.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus -E -quiet -v
-D_GNU_SOURCE luamm.hpp -mtune=generic -march=x86-64 -fpch-preprocess -o
luamm.ii
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/x86_64-unknown-linux-gnu
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/backward
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include
/usr/local/include
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include-fixed
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../x86_64-unknown-linux-gnu/include
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus -fpreprocessed
luamm.ii -quiet -dumpbase luamm.hpp -mtune=generic -march=x86-64 -auxbase luamm
-version -o luamm.s --output-pch=luamm.hpp.gch
GNU C++ (GCC) version 4.9.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.0, GMP version 5.0.2, MPFR version 3.1.0, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.9.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.0, GMP version 5.0.2, MPFR version 3.1.0, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 79c268e344b7141bdf3e34d481426ed5
luamm.hpp: In member function ‘AutoCleanVariant::operator T() const’:
luamm.hpp:26:47: internal compiler error: in push_access_scope, at cp/pt.c:219
return Variant<XX*, int>::operator T();
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
file 'luamm.ii':
# 1 "luamm.hpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "luamm.hpp"
class XX;
template<typename Container, typename Key>
struct Accessor;
template<typename Container, typename Key, typename KeyStore = Key>
class Variant {
protected:
KeyStore index;
Container state;
public:
Variant(Container st, const Key& i) : index(i), state(st) {}
template<typename T>
operator T() const {
return Accessor<Container, KeyStore>::template get<T>(state, index);
}
};
class AutoCleanVariant : public Variant<XX*, int> {
public:
AutoCleanVariant(XX* st, int i) : Variant<XX*,int>(st,i) {}
template<typename T>
operator T() const {
return Variant<XX*, int>::operator T();
}
};
More information about the Gcc-bugs
mailing list