From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [85.215.255.130]) by sourceware.org (Postfix) with ESMTPS id EA4423858430 for ; Fri, 3 Dec 2021 18:58:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA4423858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=juergen-sauermann.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=juergen-sauermann.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1638557881; s=strato-dkim-0002; d=xn--jrgen-sauermann-zvb.de; h=Date:Message-ID:Subject:From:To:Cc:Date:From:Subject:Sender; bh=yLuF5bDqbputDrFoVWsacMKTvcWvGi0uatiD5BIWTKw=; b=RU3VXETuzr08KBQrHeyrgna5rwGYPdi4NtwtWHseDYKio/Fv7sY+lXfIpv3nQOrai2 9www2FB3hpkwFAz6ixyrV8ujnqFqbpFxCgDajCzL0ISLsdXB7yE/CNABT265XNyqrRdc aINAY6TSSEeFYaYHsEsId7gyBUnlxmBh+EgfvXM4sPhsTBShC1Q/6Zdh++SceP/R1fRb CFn7tSoCkHBnqTq2+ejJGMQAByncG7JjwrW7R3uQIjjaLfb0cdnnh5p7ER88vLYV2I1h kfJ36GnhrHT0coxKYWYTL7Q4jjbB2k+Mdr7GA0niEXuMARAlbQL5cNx2xEoJIvhtyDyy A8kA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":IW0NeWCwdbJy35dEGbhINhrCL06TqIk89uRQzJQEHECld5uF6JeNB+O1P0jUjLJ2qo9S22E1SowfsWnRffSaA+L6AwzL6/2nZK4BsD0/9lRy6SUeIAmaljWuww==" X-RZG-CLASS-ID: mo05 Received: from [IPv6:2a02:8108:98bf:fa0a:b62e:99ff:fe2f:364d] by smtp.strato.de (RZmta 47.34.10 AUTH) with ESMTPSA id q0b05fxB3Iw0v2m (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 3 Dec 2021 19:58:00 +0100 (CET) To: gcc@gcc.gnu.org From: =?UTF-8?Q?Dr=2e_J=c3=bcrgen_Sauermann?= Subject: Comment on web page https://gcc.gnu.org/projects/cxx-status.html#cxx11 Message-ID: <21196ba1-2499-3ed9-a1c4-15f3ddd6a5ab@juergen-sauermann.de> Date: Fri, 3 Dec 2021 19:58:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2021 18:58:04 -0000 Hi, not sure if this matters or how int can be fixed, but today I observed the following: Your web page says that "Static assertions" are supported by GCC since version 4.3. Today I tried to use "Static assertions" on an  avr-g++ resp. avr-gcc which identifies itself as: eedjsa@server68:~/projects/AVR_workspace/ATMEGA8U2_32U2$ avr-g++ --version avr-g++ (GCC) 5.4.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. eedjsa@server68:~/projects/AVR_workspace/ATMEGA8U2_32U2$ avr-gcc --version avr-gcc (GCC) 5.4.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. but it seems not to support static assertions. The "regular" g++ works: eedjsa@server68:~/projects/AVR_workspace/ATMEGA8U2_32U2$ echo ' static_assert(0, "error"); int main() {}' | g++ -S -o /dev/null -x c++ - :2:15: error: static assertion failed: error while the avr-g++ fails: eedjsa@server68:~/projects/AVR_workspace/ATMEGA8U2_32U2$ echo ' static_assert(0, "error"); int main() {}' | avr-g++ -S -o /dev/null -x c++ - :2:14: error: expected constructor, destructor, or type conversion before ‘(’ token Maybe this should be mentioned on the web page. Best Regards, Jürgen Sauermann