From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8199 invoked by alias); 27 Apr 2012 06:00:33 -0000 Received: (qmail 8176 invoked by uid 22791); 27 Apr 2012 06:00:31 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Apr 2012 06:00:17 +0000 From: "raj.khem at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53135] internal compiler error: in value_format, at dwarf2out.c:8010 Date: Fri, 27 Apr 2012 06:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: raj.khem at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Target Known to fail Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg02399.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53135 Khem Raj changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |arm-oe-linux-gnueabi Known to fail| |4.7.0, 4.7.1 --- Comment #1 from Khem Raj 2012-04-27 05:59:56 UTC --- testcase class QAbstractFileEngine { public: enum FileFlag { ReadOwnerPerm = 0x4000, WriteOwnerPerm = 0x2000, ExeOwnerPerm = 0x1000, ReadUserPerm = 0x0400, WriteUserPerm = 0x0200, ExeUserPerm = 0x0100, ReadGroupPerm = 0x0040, WriteGroupPerm = 0x0020, ExeGroupPerm = 0x0010, ReadOtherPerm = 0x0004, WriteOtherPerm = 0x0002, ExeOtherPerm = 0x0001, }; bool setPermissions(unsigned int perms); }; extern const char* str; extern bool foo(const char*, int); bool QAbstractFileEngine::setPermissions(unsigned int perms) { bool ret = false; int mode = 0; if (perms & ReadOwnerPerm) mode |= 0400; if (perms & WriteOwnerPerm) mode |= 0200; if (perms & ExeOwnerPerm) mode |= 0100; if (perms & ReadUserPerm) mode |= 0400; if (perms & WriteUserPerm) mode |= 0200; if (perms & ExeUserPerm) mode |= 0100; if (perms & ReadGroupPerm) mode |= (0400 >> 3); if (perms & WriteGroupPerm) mode |= (0200 >> 3); if (perms & ExeGroupPerm) mode |= (0100 >> 3); if (perms & ReadOtherPerm) mode |= ((0400 >> 3) >> 3); if (perms & WriteOtherPerm) mode |= ((0200 >> 3) >> 3); if (perms & ExeOtherPerm) mode |= ((0100 >> 3) >> 3); ret = foo(str, mode) == 0; return ret; }