This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43321] New: [c++0x] ICE on valid auto
- From: "adam dot rak at streamnovation dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2010 15:08:27 -0000
- Subject: [Bug c++/43321] New: [c++0x] ICE on valid auto
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I hope it's a valid "auto". the code works if I write "int" instead of "auto".
It might be related to Bug 43281
internal compiler error: in type_unification_real, at cp/pt.c:13486
template <typename T >
void shuffle(const T& first, const T& last)
{
auto w = *first;
}
int main()
{
int b[5];
shuffle(&b[0],&b[4]);
}
g++-4.5 -v
Using built-in specs.
COLLECT_GCC=g++-4.5
COLLECT_LTO_WRAPPER=/home/rakadam/streamplusplus/local/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --program-suffix=-4.5
--prefix=/home/rakadam/streamplusplus/src/third_party/gcc-trunk/build_gcc/../../../../local
--enable-lto --disable-bootstrap --enable-gold
Thread model: posix
gcc version 4.5.0 20100306 (experimental) (GCC)
--
Summary: [c++0x] ICE on valid auto
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: adam dot rak at streamnovation dot com
GCC build triplet: x86_64-unknown-linux
GCC host triplet: x86_64-unknown-linux
GCC target triplet: x86_64-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43321