public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43281] [c++0x] ICE with invalid auto
       [not found] <bug-43281-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-17 12:10 ` aaz at althenia dot net
  0 siblings, 0 replies; 4+ messages in thread
From: aaz at althenia dot net @ 2010-10-17 12:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281

Andrey Zholos <aaz at althenia dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaz at althenia dot net

--- Comment #5 from Andrey Zholos <aaz at althenia dot net> 2010-10-17 12:10:12 UTC ---
This valid code triggers the new error message:

template<typename T>
struct A {
    int f();
    void g() {
        auto x = f(), y = x;
    }
};


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/43281] [c++0x] ICE with invalid auto
  2010-03-07 13:00 [Bug c++/43281] New: [c++0x] ICE in nested lambda functions, in a special case adam dot rak at streamnovation dot com
  2010-03-08  4:27 ` [Bug c++/43281] [c++0x] ICE with invalid auto jason at gcc dot gnu dot org
  2010-03-22 20:39 ` jason at gcc dot gnu dot org
@ 2010-03-22 20:50 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-03-22 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2010-03-22 20:50 -------
Fixed.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/43281] [c++0x] ICE with invalid auto
  2010-03-07 13:00 [Bug c++/43281] New: [c++0x] ICE in nested lambda functions, in a special case adam dot rak at streamnovation dot com
  2010-03-08  4:27 ` [Bug c++/43281] [c++0x] ICE with invalid auto jason at gcc dot gnu dot org
@ 2010-03-22 20:39 ` jason at gcc dot gnu dot org
  2010-03-22 20:50 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-03-22 20:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2010-03-22 20:39 -------
Subject: Bug 43281

Author: jason
Date: Mon Mar 22 20:38:46 2010
New Revision: 157651

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157651
Log:
        PR c++/43281
        * pt.c (contains_auto_r): New fn.
        (do_auto_deduction): Use it.
        (tsubst): Don't look at TREE_TYPE of a TEMPLATE_TYPE_PARM.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/43281] [c++0x] ICE with invalid auto
  2010-03-07 13:00 [Bug c++/43281] New: [c++0x] ICE in nested lambda functions, in a special case adam dot rak at streamnovation dot com
@ 2010-03-08  4:27 ` jason at gcc dot gnu dot org
  2010-03-22 20:39 ` jason at gcc dot gnu dot org
  2010-03-22 20:50 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-03-08  4:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jason at gcc dot gnu dot org  2010-03-08 04:27 -------
and indeed this testcase gets the same crash:

void f()
{
  auto val = val;
}


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[c++0x] ICE in nested lambda|[c++0x] ICE with invalid
                   |functions with invalid auto |auto


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-17 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43281-4@http.gcc.gnu.org/bugzilla/>
2010-10-17 12:10 ` [Bug c++/43281] [c++0x] ICE with invalid auto aaz at althenia dot net
2010-03-07 13:00 [Bug c++/43281] New: [c++0x] ICE in nested lambda functions, in a special case adam dot rak at streamnovation dot com
2010-03-08  4:27 ` [Bug c++/43281] [c++0x] ICE with invalid auto jason at gcc dot gnu dot org
2010-03-22 20:39 ` jason at gcc dot gnu dot org
2010-03-22 20:50 ` jason at gcc dot gnu dot 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).