public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796
@ 2011-07-25 12:19 sscrisk at gmail dot com
2011-07-25 12:36 ` [Bug c++/49838] " paolo.carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: sscrisk at gmail dot com @ 2011-07-25 12:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49838
Summary: [C++0x] ICE in cp_parser_perform_range_for_lookup, at
cp/parser.c:8796
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sscrisk@gmail.com
The g++ 4.7.0 20110723 (experimental) compile the ill-formed codes
when compiler say (normal) compiler error and ICE messages.
Codes here:
int main()
{
auto a;
for(auto i: a)
;
}
Compiler messages:
$ g++4.7 -std=c++0x -Wall -Wextra -pedantic a.cpp
a.cpp: In function 'int main()':
a.cpp:3:7: error: declaration of 'auto a' has no initializer
a.cpp:4:14: error: unable to deduce 'auto&&' from 'a'
a.cpp:4:14: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_parser_
perform_range_for_lookup, at cp/parser.c:8796
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Version info:
$ g++4.7 -v
Built by Equation Solution <http://www.Equation.com>.
Using built-in specs.
COLLECT_GCC=C:\cygwin\home\RiSK\misc\gcc4.7\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/cygwin/home/risk/misc/gcc4.7/bin/../libexec/gcc/i686-pc-mingw32/4.7.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../gcc-4.7-20110723-mingw/configure --host=i686-pc-mingw32
--build=x86_64-unknown-linux-gnu --target
=i686-pc-mingw32
--prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.7-20110723
--with-gcc --with-gnu
-as --with-gnu-ld --with-host-libstdcxx='-lstdc++ -lsupc++ -lm'
--with-ppl=/home/gfortran/gcc-home/binary/mingw32/nat
ive/x86_32/ppl
--with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog
--with-gmp=/home/gfortran/gcc-
home/binary/mingw32/native/x86_32/gmp
--with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr --with-mp
c=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc
--with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cros
s/x86_32/gcc/4.7-20110723 --disable-shared --disable-nls --disable-tls
--disable-win32-registry --enable-libquadmath-
support --enable-libquadmath --enable-languages=c,c++,fortran --enable-libgomp
--enable-threads=win32 --enable-lto --
enable-static --enable-shared=lto-plugin --enable-plugins --enable-ld=yes
--enable-cloog-backend=ppl
Thread model: win32
gcc version 4.7.0 20110723 (experimental) (GCC)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49838] [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796
2011-07-25 12:19 [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796 sscrisk at gmail dot com
@ 2011-07-25 12:36 ` paolo.carlini at oracle dot com
2011-07-25 12:42 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-25 12:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49838
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.25 12:36:10
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-25 12:36:10 UTC ---
Confirmed, seems easy to fix. Note, happens only with checking enabled.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49838] [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796
2011-07-25 12:19 [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796 sscrisk at gmail dot com
2011-07-25 12:36 ` [Bug c++/49838] " paolo.carlini at oracle dot com
@ 2011-07-25 12:42 ` paolo.carlini at oracle dot com
2011-07-25 15:31 ` paolo at gcc dot gnu.org
2011-07-25 15:31 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-25 12:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49838
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49838] [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796
2011-07-25 12:19 [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796 sscrisk at gmail dot com
2011-07-25 12:36 ` [Bug c++/49838] " paolo.carlini at oracle dot com
2011-07-25 12:42 ` paolo.carlini at oracle dot com
@ 2011-07-25 15:31 ` paolo at gcc dot gnu.org
2011-07-25 15:31 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-07-25 15:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49838
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-07-25 15:29:16 UTC ---
Author: paolo
Date: Mon Jul 25 15:29:13 2011
New Revision: 176754
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176754
Log:
/cp
2011-07-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/49838
* parser.c (cp_parser_perform_range_for_lookup): Early return if
error_operand_p (range).
/testsuite
2011-07-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/49838
* g++.dg/cpp0x/range-for19.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/49838] [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796
2011-07-25 12:19 [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796 sscrisk at gmail dot com
` (2 preceding siblings ...)
2011-07-25 15:31 ` paolo at gcc dot gnu.org
@ 2011-07-25 15:31 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-25 15:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49838
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-25 15:30:20 UTC ---
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-25 15:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 12:19 [Bug c++/49838] New: [C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796 sscrisk at gmail dot com
2011-07-25 12:36 ` [Bug c++/49838] " paolo.carlini at oracle dot com
2011-07-25 12:42 ` paolo.carlini at oracle dot com
2011-07-25 15:31 ` paolo at gcc dot gnu.org
2011-07-25 15:31 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).