* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
@ 2009-04-13 14:47 ` paolo dot carlini at oracle dot com
2009-04-13 15:05 ` hjl dot tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-13 14:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2009-04-13 14:47 -------
Are you *sure* this is a regression? Did you compare to 4.5.0 a 4.4.0 built
with checking *enabled*?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
2009-04-13 14:47 ` [Bug c++/39751] " paolo dot carlini at oracle dot com
@ 2009-04-13 15:05 ` hjl dot tools at gmail dot com
2009-04-13 15:06 ` pinskia at gmail dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-04-13 15:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2009-04-13 15:04 -------
(In reply to comment #1)
> Are you *sure* this is a regression? Did you compare to 4.5.0 a 4.4.0 built
> with checking *enabled*?
>
FWIW, gcc 4.4.0 doesn't ICE when checking isn't disabled. But this testcase
has been failing since gcc 4.3.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
2009-04-13 14:47 ` [Bug c++/39751] " paolo dot carlini at oracle dot com
2009-04-13 15:05 ` hjl dot tools at gmail dot com
@ 2009-04-13 15:06 ` pinskia at gmail dot com
2009-04-13 15:06 ` [Bug c++/39751] New: " Andrew Thomas Pinski
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gmail dot com @ 2009-04-13 15:06 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2908 bytes --]
------- Comment #3 from pinskia at gmail dot com 2009-04-13 15:06 -------
Subject: Re: New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
Sent from my iPhone
On Apr 13, 2009, at 7:43 AM, "gcc at abeckmann dot de"
<gcc-bugzilla@gcc.gnu.org
> wrote:
> This is a 4.5.0 regression on invalid code:
>
> ========== 8< ==========
> template < typename >
> struct A
> {
> A < struct
> {
> f () :
> ========== >8 ==========
>
> ---------- 4.5.0 ----------
> $ x86_64-linux-gnu-g++-trunk -v -c ice-cp_parser_c-342.ii
>
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../gcc-trunk/configure
> --prefix=/opt/software/gcc-x86_64/gcc-trunk --program-suffix=-trunk
> --enable-languages=c,c++
> Thread model: posix
> gcc version 4.5.0 20090410 (experimental) (GCC)
> COLLECT_GCC_OPTIONS='-v' '-c' '-shared-libgcc' '-mtune=generic'
>
> /opt/software/gcc-x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-
> gnu/4.5.0/cc1plus
> -fpreprocessed ice-cp_parser_c-342.ii -quiet -dumpbase ice-
> cp_parser_c-342.ii
> -mtune=generic -auxbase ice-cp_parser_c-342 -version -o /tmp/
> ccqQZWYs.s
> GNU C++ (GCC) version 4.5.0 20090412 (experimental) (x86_64-unknown-
> linux-gnu)
> compiled by GNU C version 4.5.0 20090410 (experimental), GMP
> version
> 4.2.2, MPFR version 2.3.1.
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-
> heapsize=4096
> Compiler executable checksum: b13346d60276f3352c4b7dd22e3889d7
> ice-cp_parser_c-342.ii:6: error: ISO C++ forbids declaration of
> âfâ with no
> type
> ice-cp_parser_c-342.ii:6: error: expected â}â at end of input
> ice-cp_parser_c-342.ii:6: error: expected template-argument at end
> of input
> ice-cp_parser_c-342.ii:6: error: expected â>â at end of input
> ice-cp_parser_c-342.ii:6: error: expected â::â at end of input
> ice-cp_parser_c-342.ii:6: error: expected unqualified-id at end of
> input
> ice-cp_parser_c-342.ii:6: error: expected â;â at end of input
> ice-cp_parser_c-342.ii:6: error: expected â}â at end of input
> ice-cp_parser_c-342.ii:6: internal compiler error: in
> cp_lexer_new_from_tokens,
> at cp/parser.c:342
> --------------------
>
> using 4.4.0 or older the compilation terminates with
>
> ice-cp_parser_c-342.ii:6: confused by earlier errors, bailing out
Then this is not a regression :). That message is the same as an ice
but just for releases;).
>
>
>
> --
> Summary: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
> Product: gcc
> Version: 4.5.0
> Status: UNCONFIRMED
> Severity: normal
> Priority: P3
> Component: c++
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: gcc at abeckmann dot de
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
` (2 preceding siblings ...)
2009-04-13 15:06 ` pinskia at gmail dot com
@ 2009-04-13 15:06 ` Andrew Thomas Pinski
2009-04-13 15:10 ` [Bug c++/39751] " paolo dot carlini at oracle dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andrew Thomas Pinski @ 2009-04-13 15:06 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
Sent from my iPhone
On Apr 13, 2009, at 7:43 AM, "gcc at abeckmann dot de" <gcc-bugzilla@gcc.gnu.org
> wrote:
> This is a 4.5.0 regression on invalid code:
>
> ========== 8< ==========
> template < typename >
> struct A
> {
> A < struct
> {
> f () :
> ========== >8 ==========
>
> ---------- 4.5.0 ----------
> $ x86_64-linux-gnu-g++-trunk -v -c ice-cp_parser_c-342.ii
>
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: ../gcc-trunk/configure
> --prefix=/opt/software/gcc-x86_64/gcc-trunk --program-suffix=-trunk
> --enable-languages=c,c++
> Thread model: posix
> gcc version 4.5.0 20090410 (experimental) (GCC)
> COLLECT_GCC_OPTIONS='-v' '-c' '-shared-libgcc' '-mtune=generic'
>
> /opt/software/gcc-x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-
> gnu/4.5.0/cc1plus
> -fpreprocessed ice-cp_parser_c-342.ii -quiet -dumpbase ice-
> cp_parser_c-342.ii
> -mtune=generic -auxbase ice-cp_parser_c-342 -version -o /tmp/
> ccqQZWYs.s
> GNU C++ (GCC) version 4.5.0 20090412 (experimental) (x86_64-unknown-
> linux-gnu)
> compiled by GNU C version 4.5.0 20090410 (experimental), GMP
> version
> 4.2.2, MPFR version 2.3.1.
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-
> heapsize=4096
> Compiler executable checksum: b13346d60276f3352c4b7dd22e3889d7
> ice-cp_parser_c-342.ii:6: error: ISO C++ forbids declaration of
> ‘f’ with no
> type
> ice-cp_parser_c-342.ii:6: error: expected ‘}’ at end of input
> ice-cp_parser_c-342.ii:6: error: expected template-argument at end
> of input
> ice-cp_parser_c-342.ii:6: error: expected ‘>’ at end of input
> ice-cp_parser_c-342.ii:6: error: expected ‘::’ at end of input
> ice-cp_parser_c-342.ii:6: error: expected unqualified-id at end of
> input
> ice-cp_parser_c-342.ii:6: error: expected ‘;’ at end of input
> ice-cp_parser_c-342.ii:6: error: expected ‘}’ at end of input
> ice-cp_parser_c-342.ii:6: internal compiler error: in
> cp_lexer_new_from_tokens,
> at cp/parser.c:342
> --------------------
>
> using 4.4.0 or older the compilation terminates with
>
> ice-cp_parser_c-342.ii:6: confused by earlier errors, bailing out
Then this is not a regression :). That message is the same as an ice
but just for releases;).
>
>
>
> --
> Summary: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
> Product: gcc
> Version: 4.5.0
> Status: UNCONFIRMED
> Severity: normal
> Priority: P3
> Component: c++
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: gcc at abeckmann dot de
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
` (3 preceding siblings ...)
2009-04-13 15:06 ` [Bug c++/39751] New: " Andrew Thomas Pinski
@ 2009-04-13 15:10 ` paolo dot carlini at oracle dot com
2009-04-13 15:12 ` paolo dot carlini at oracle dot com
2010-03-03 23:45 ` zsojka at seznam dot cz
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-13 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2009-04-13 15:10 -------
Indeed, I just checked and 4.4.0 also ICEs when checking is enabled, thus
behaves exactly like 4.5.0.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.5.0 |4.4.0 4.5.0
Known to work|4.4.0 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
` (4 preceding siblings ...)
2009-04-13 15:10 ` [Bug c++/39751] " paolo dot carlini at oracle dot com
@ 2009-04-13 15:12 ` paolo dot carlini at oracle dot com
2010-03-03 23:45 ` zsojka at seznam dot cz
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-13 15:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from paolo dot carlini at oracle dot com 2009-04-13 15:12 -------
HJ, you are wrong, make sure to pass --enable-checking explicitly in
4_4-branch.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-04-13 15:12:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342
2009-04-13 14:43 [Bug c++/39751] New: ICE in cp_lexer_new_from_tokens, at cp/parser.c:342 gcc at abeckmann dot de
` (5 preceding siblings ...)
2009-04-13 15:12 ` paolo dot carlini at oracle dot com
@ 2010-03-03 23:45 ` zsojka at seznam dot cz
6 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-03 23:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from zsojka at seznam dot cz 2010-03-03 23:45 -------
It could be regression from 3.3.6.
3.4.6, 4.1.2, 4.2.4, 4.3.4, 4.4.3 built without checking all bail out, while
3.3.6 ends with:
$ g++-3.3.6 xxx.cc
xxx.cc:6: error: ISO C++ forbids declaration of `f' with no type
xxx.cc:6: error: end of file read inside definition
xxx.cc:6: error: syntax error at end of input
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751
^ permalink raw reply [flat|nested] 8+ messages in thread