public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50054] New: Fails to recover from type error in function signature
@ 2011-08-12 8:02 stiffy2 at gmx dot de
2011-08-12 9:00 ` [Bug c++/50054] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: stiffy2 at gmx dot de @ 2011-08-12 8:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
Bug #: 50054
Summary: Fails to recover from type error in function signature
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: stiffy2@gmx.de
GCC fails to recover from the type error in the function signature of g and
crashes:
void g( const int& (a)[1] ) {}
int main () {
g( { 1, 2 } );
}
It doesn't crash when g( { 1, 2 } ); is deleted.
================ Using 4.7
Call to GCC with error message:
% LANG=C make CXXFLAGS="-std=c++0x" listinit
g++ -std=c++0x listinit.cpp -o listinit
listinit.cpp:1:25: error: declaration of `a' as array of references
listinit.cpp: In function `int main()':
listinit.cpp:4:17: internal compiler error: in cxx_incomplete_type_diagnostic,
at cp/typeck2.c:453
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
GCC Version:
% LANG=C g++ -v
Using built-in specs.
COLLECT_GCC=/home/evnu/bin/g++
COLLECT_LTO_WRAPPER=/home/evnu/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-plugin --enable-cloog-backend=isl
--with-ppl --enable-__cxa_atexit --with-system-zlib --enable-shared
--enable-threads=posix --enable-languages=c,c++ --disable-multilib
--prefix=/home/evnu
Thread model: posix
gcc version 4.7.0 20110808 (experimental) (GCC)
=============== Using GCC 4.6
Call to GCC with error message:
% LANG=C make CXXFLAGS="-std=c++0x" listinit CXX=/usr/bin/g++
/usr/bin/g++ -std=c++0x listinit.cpp -o listinit
listinit.cpp:1:25: error: declaration of 'a' as array of references
listinit.cpp:4: confused by earlier errors, bailing out
GCC Version:
% LANG=C /usr/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.6.1/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object
--enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto
--enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold
--enable-multilib --disable-libstdcxx-pch --enable-checking=release
Thread model: posix
gcc version 4.6.1 (GCC)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50054] Fails to recover from type error in function signature
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
@ 2011-08-12 9:00 ` redi at gcc dot gnu.org
2011-08-16 23:27 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-08-12 9:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-08-12
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-08-12 08:57:07 UTC ---
confirmed, 4.5 gave:
<stdin>:4:17: error: insufficient contextual information to determine type
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50054] Fails to recover from type error in function signature
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
2011-08-12 9:00 ` [Bug c++/50054] " redi at gcc dot gnu.org
@ 2011-08-16 23:27 ` jason at gcc dot gnu.org
2011-08-16 23:38 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-16 23:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-16 23:25:49 UTC ---
Author: jason
Date: Tue Aug 16 23:25:43 2011
New Revision: 177810
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177810
Log:
PR c++/50054
* typeck2.c (cxx_incomplete_type_diagnostic): Handle
init_list_type_node.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist57.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50054] Fails to recover from type error in function signature
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
2011-08-12 9:00 ` [Bug c++/50054] " redi at gcc dot gnu.org
2011-08-16 23:27 ` jason at gcc dot gnu.org
@ 2011-08-16 23:38 ` jason at gcc dot gnu.org
2011-08-16 23:39 ` jason at gcc dot gnu.org
2011-08-16 23:43 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-16 23:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-16 23:36:03 UTC ---
Author: jason
Date: Tue Aug 16 23:35:59 2011
New Revision: 177814
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177814
Log:
PR c++/50054
* typeck2.c (cxx_incomplete_type_diagnostic): Handle
init_list_type_node.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/initlist57.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/typeck2.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50054] Fails to recover from type error in function signature
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
` (2 preceding siblings ...)
2011-08-16 23:38 ` jason at gcc dot gnu.org
@ 2011-08-16 23:39 ` jason at gcc dot gnu.org
2011-08-16 23:43 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-16 23:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Target Milestone|--- |4.6.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50054] Fails to recover from type error in function signature
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
` (3 preceding siblings ...)
2011-08-16 23:39 ` jason at gcc dot gnu.org
@ 2011-08-16 23:43 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-16 23:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50054
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-16 23:37:49 UTC ---
Fixed for 4.6.2.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-08-16 23:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12 8:02 [Bug c++/50054] New: Fails to recover from type error in function signature stiffy2 at gmx dot de
2011-08-12 9:00 ` [Bug c++/50054] " redi at gcc dot gnu.org
2011-08-16 23:27 ` jason at gcc dot gnu.org
2011-08-16 23:38 ` jason at gcc dot gnu.org
2011-08-16 23:39 ` jason at gcc dot gnu.org
2011-08-16 23:43 ` jason at gcc dot gnu.org
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).